Module: libav
Branch: master
Commit: 769ed3057efec12820f9245f6ad3fa5bcfc95c5e

Author:    Michael Niedermayer <[email protected]>
Committer: Martin Storsjö <[email protected]>
Date:      Mon May  9 16:05:29 2011 +0200

h264probe: Don't error out on bits that no longer are reserved

Signed-off-by: Martin Storsjö <[email protected]>

---

 libavformat/h264dec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/h264dec.c b/libavformat/h264dec.c
index 8070086..0c85bae 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;

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to