On Fri, Jan 25, 2019 at 11:43 AM Li, Zhong <zhong...@intel.com> wrote:
> avctx->pix_fmt should be get from MFXVideoDECODE_DecodeHeader() but it is 
> needed to init MSDK session, and looks like a deadlock, :(
> One solution is that we assume avctx->format has been parsed somewhere else 
> (such as avformat_find_stream_info() form libavformt) before start decoding.
>

You cannot rely on that. Especially since noone knows what format the
decoder is going to use. avformat will tell you its YUV420P10, not
P010.
A user who doesn't use avformat at all and only feed avcodec will
likely not set avctx->format at all, since basically nothing else
needs it.

A decoder has to figure out the pixel format by itself.

- Hendrik
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to