[FFmpeg-devel] [PATCH]lavc/h264_mp4toannexb: Do not fail if frame already starts with startcode

Carl Eugen Hoyos cehoyos at ag.or.at
Sat Mar 26 10:38:15 CET 2016


Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:

>      /* nothing to filter */
> -    if (!avctx->extradata || avctx->extradata_size < 6) {
> +    if (   !avctx->extradata || avctx->extradata_size < 6
> +        || !buf[0]

Inserted "buf_size > 3 && " locally.

Carl Eugen



More information about the ffmpeg-devel mailing list