From 769ed3057efec12820f9245f6ad3fa5bcfc95c5e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 9 May 2011 16:05:29 +0200 Subject: [PATCH] h264probe: Don't error out on bits that no longer are reserved MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- libavformat/h264dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/h264dec.c b/libavformat/h264dec.c index 807008621a..0c85bae6d4 100644 --- a/libavformat/h264dec.c +++ b/libavformat/h264dec.c @@ -54,7 +54,7 @@ static int h264_probe(AVProbeData *p) case 1: sli++; break; case 5: idr++; break; case 7: - if(p->buf[i+2]&0x0F) + if (p->buf[i + 2] & 0x03) return 0; sps++; break;