[FFmpeg-devel] [PATCH v2] avcodec/cuvidddec: Guess pixel format based on probed bit depth and chroma sampling

Timo Rothenpieler timo at rothenpieler.org
Fri Aug 2 18:32:57 EEST 2024


On 02.08.2024 16:05, Roman Arzumanyan wrote:
> Thanks a lot Timo !
> 
> Just for my own education: in my application I follow the usual sequence of
> API calls to init hw device context and open the codec. What's the right
> place to probe the input? I was under the impression that it's done within
> avformat_find_stream_info().

ffmpeg.c calls avcodec_parameters_to_context() on the codecpars got from 
the demuxer/probing phase.
I'm not actually sure where the probing itself happens.


More information about the ffmpeg-devel mailing list