[FFmpeg-devel] [PATCH] H264: move avctx->refs init down to SPS

Gwenole Beauchesne gbeauchesne
Wed Apr 14 09:48:22 CEST 2010


Hi,

This patches moves initialization of AVCodecContext.refs down to the point 
sps.ref_frame_count is actually initialized through 
ff_h264_decode_seq_parameter_set().

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.

Regards,
Gwenole.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.h264.refs.patch
Type: text/x-diff
Size: 1211 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100414/fe8f9610/attachment.patch>



More information about the ffmpeg-devel mailing list