[FFmpeg-devel] [PATCH] avcodec/dolby_e: set constant frame_size

Anton Khirnov anton at khirnov.net
Fri Oct 2 12:34:20 EEST 2020


Quoting Nicolas Gaullier (2020-10-01 15:22:37)
> Fixes pts generation.
> ---
>  libavcodec/dolby_e.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavcodec/dolby_e.c b/libavcodec/dolby_e.c
> index 429612ec08..b0e6d6aee3 100644
> --- a/libavcodec/dolby_e.c
> +++ b/libavcodec/dolby_e.c
> @@ -577,6 +577,7 @@ static int filter_frame(DBEContext *s, AVFrame *frame)
>          reorder = ch_reorder_n;
>  
>      frame->nb_samples = FRAME_SAMPLES;
> +    s->avctx->frame_size = FRAME_SAMPLES;

Wouldn't it make more sense to set it in decoder init?

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list