summaryrefslogtreecommitdiff
path: root/libavformat/h264dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-05-09 16:05:29 +0200
committerMartin Storsjö <martin@martin.st>2012-10-04 00:59:34 +0300
commit769ed3057efec12820f9245f6ad3fa5bcfc95c5e (patch)
tree438440f85f98e86a6448ccc400ba940e331b9e79 /libavformat/h264dec.c
parent1481e198251192c9801d4e7818c3c23bc217f705 (diff)
downloadffmpeg-769ed3057efec12820f9245f6ad3fa5bcfc95c5e.tar.gz
h264probe: Don't error out on bits that no longer are reserved
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/h264dec.c')
-rw-r--r--libavformat/h264dec.c2
1 files changed, 1 insertions, 1 deletions
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;