[MPlayer-dev-eng] vd_ffmpeg initialization

Gwenole Beauchesne gbeauchesne at splitted-desktop.com
Thu Feb 12 16:12:02 CET 2009


Hi,

Why is avctx->opaque initialized in vd_ffmpeg.c::decode() and not in 
vd_ffmpeg.c::init()?

AVCodecContext::get_format() could be called from an AVCodec::init() 
function but avctx->opaque (sh_video_t *) is not initialized at this time, 
so init_vo() can't be called from a custom ::get_format().

Thanks,
Gwenole



More information about the MPlayer-dev-eng mailing list