[FFmpeg-cvslog] avcodec/h264_mp4toannexb_bsf: use the given padding in h264_extradata_to_annexb().

Benoit Fouet git at videolan.org
Tue Sep 30 13:19:42 CEST 2014


ffmpeg | branch: master | Benoit Fouet <benoit.fouet at free.fr> | Tue Sep 30 13:06:30 2014 +0200| [d5ddcb5f8e7b14974fabd5e95e6420c6e9b12991] | committer: Michael Niedermayer

avcodec/h264_mp4toannexb_bsf: use the given padding in h264_extradata_to_annexb().

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/h264_mp4toannexb_bsf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/h264_mp4toannexb_bsf.c b/libavcodec/h264_mp4toannexb_bsf.c
index 3ec4170..be42304 100644
--- a/libavcodec/h264_mp4toannexb_bsf.c
+++ b/libavcodec/h264_mp4toannexb_bsf.c
@@ -117,7 +117,7 @@ pps:
     }
 
     if (out)
-        memset(out + total_size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
+        memset(out + total_size, 0, padding);
 
     if (!sps_seen)
         av_log(avctx, AV_LOG_WARNING,



More information about the ffmpeg-cvslog mailing list