summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}