[FFmpeg-user] wrong extradata on decoding a mxf xavc long gop file.

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Apr 10 22:33:10 EEST 2019


2019-04-10 20:00 GMT+02:00, Yufei He <yhe at matrox.com>:

> https://drive.google.com/open?id=1Rugz-tKCNDViN-zxJ9pQyKqSi_Eos7QD
>
> On decoding the file this link, avctx->extradata is wrong
> data, there is no valid sps and pps.
>
> Actually, mxf files does not need extradata. normally
> sps and pps are stored in every IDR frame.

This is not true for all mxf files...

> My decoder expects right extradata.  Yes, I can add
> protection to check if it's valid.
>
> I debugged with h264dec.c, it can not find valid sps pps either.

But why should it abort if the extradata is not valid but unneeded?

Feel free to send a patch that detects in the mxf demuxer if
extradata has to be inserted or not.

See also ticket #4820.

Carl Eugen


More information about the ffmpeg-user mailing list