Reimar Döffinger <[email protected]> added the comment:
I suspect this change will fix the crash, but I doubt it will play:
Index: ffmpeg/libavcodec/h264_mp4toannexb_bsf.c
===================================================================
--- ffmpeg/libavcodec/h264_mp4toannexb_bsf.c (revision 25816)
+++ ffmpeg/libavcodec/h264_mp4toannexb_bsf.c (working copy)
@@ -114,6 +114,7 @@
unit_nb = *extradata++; /* number of pps unit(s) */
}
+ if (out)
memset(out + total_size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
av_free(avctx->extradata);
avctx->extradata = out;
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2386>
________________________________________________