[FFmpeg-devel] [PATCH] H264: move avctx->refs init down to SPS
Wed Apr 14 09:48:22 CEST 2010
This patches moves initialization of AVCodecContext.refs down to the point
sps.ref_frame_count is actually initialized through
Rationale: AVCodecContext.refs needs to be set before
AVCodecContext.get_format() is called so that a HW decoder can use it as a
hint to preinitialize the right number of HW surfaces, and then increase
them when needed.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1211 bytes
More information about the ffmpeg-devel