On 12/01/13 04:31, Luca Barbato wrote:
> @@ -824,6 +824,9 @@ int attribute_align_arg avcodec_open2(AVCodecContext
> *avctx, const AVCodec *code
> } else if (avctx->channel_layout) {
> avctx->channels =
> av_get_channel_layout_nb_channels(avctx->channel_layout);
> }
> +
> + if (!avctx->rc_initial_buffer_occupancy)
> + avctx->rc_initial_buffer_occupancy = avctx->rc_buffer_size * 3 /
> 4;
If (as discussed on IRC with Anton) setting the default feels wrong in
avcodec_open2, the other option is to set it in the ff_rate_control_init
as suggested in the bug.
I picked it to make setting the default rc_initial_buffer_occupancy
closer to where rc_buffer_size is set and it fits the other derivate
defaults we set there.
lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel