[FFmpeg-devel] [PATCH] avcodec/mpeg12dec: flush a53 data

Anton Khirnov anton at khirnov.net
Wed Jan 4 12:39:02 EET 2023


Quoting Aman Karmani (2023-01-02 20:18:36)
> From: Aman Karmani <aman at tmm1.net>
> 
> Signed-off-by: Aman Karmani <aman at tmm1.net>
> ---
>     avcodec/mpeg12dec: flush a53 data
> 
> Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-45%2Ftmm1%2Fmpeg2-a53-flush-v1
> Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-45/tmm1/mpeg2-a53-flush-v1
> Pull-Request: https://github.com/ffstaging/FFmpeg/pull/45
> 
>  libavcodec/mpeg12dec.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
> index 914516bbd9..fee2d4a10e 100644
> --- a/libavcodec/mpeg12dec.c
> +++ b/libavcodec/mpeg12dec.c
> @@ -2845,6 +2845,7 @@ static void flush(AVCodecContext *avctx)
>      s->sync       = 0;
>      s->closed_gop = 0;
>  
> +    av_buffer_unref(&s->a53_buf_ref);

Makes sense, will push if nobody objects.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list