summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2012-01-19 10:11:21 +0000
committerphintuka <phintuka>2012-01-19 10:11:21 +0000
commit26a37a70644510644e0f813092f0fe66a552acda (patch)
tree3e689d4498fbb0548c8378c5d07026b267f1422b
parentb1a98f260bd5f918c16f547e229aabb96a754464 (diff)
downloadxineliboutput-26a37a70644510644e0f813092f0fe66a552acda.tar.gz
xineliboutput-26a37a70644510644e0f813092f0fe66a552acda.tar.bz2
Fixed PES video type detection
-rw-r--r--xine/demux_xvdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xine/demux_xvdr.c b/xine/demux_xvdr.c
index 8541bc79..c2dbdc79 100644
--- a/xine/demux_xvdr.c
+++ b/xine/demux_xvdr.c
@@ -993,7 +993,7 @@ static int32_t parse_video_stream(demux_xvdr_t *this, uint8_t *p, buf_element_t
p += result;
- if (this->video_type == 0 && buf->size >= 4) {
+ if (this->video_type == 0 && buf->size >= result + 4) {
this->video_type = detect_h264(p);
}