[FFmpeg-cvslog] h264_mp4toannexb_bsf: Fix spurious warning when stream has SPS and PPS units.

Philip Langdale git
Tue Mar 15 16:55:25 CET 2011


ffmpeg | branch: master | Philip Langdale <philipl at overt.org> | Mon Mar 14 22:14:22 2011 -0700| [025225d7ee0e7585dff9617c60259febd9e7299c] | committer: Ronald S. Bultje

h264_mp4toannexb_bsf: Fix spurious warning when stream has SPS and PPS units.

Signed-off-by: Philip Langdale <philipl at overt.org>
Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=025225d7ee0e7585dff9617c60259febd9e7299c
---

 libavcodec/h264_mp4toannexb_bsf.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/libavcodec/h264_mp4toannexb_bsf.c b/libavcodec/h264_mp4toannexb_bsf.c
index df49b34..3754f2a 100644
--- a/libavcodec/h264_mp4toannexb_bsf.c
+++ b/libavcodec/h264_mp4toannexb_bsf.c
@@ -116,8 +116,11 @@ static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc,
             memcpy(out+total_size-unit_size,   extradata+2, unit_size);
             extradata += 2+unit_size;
 
-            if (!unit_nb && !sps_done++)
+            if (!unit_nb && !sps_done++) {
                 unit_nb = *extradata++; /* number of pps unit(s) */
+                if (unit_nb)
+                    pps_seen = 1;
+            }
         }
 
         if(out)




More information about the ffmpeg-cvslog mailing list