diff mbox series

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

Message ID pull.45.ffstaging.FFmpeg.1672687116474.ffmpegagent@gmail.com
State Accepted
Commit 4b2b9a6604d4dd9294dec4d26644cdc2a7c8b16b
Headers show
Series [FFmpeg-devel] avcodec/mpeg12dec: flush a53 data | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Aman Karmani Jan. 2, 2023, 7:18 p.m. UTC
From: Aman Karmani <aman@tmm1.net>

Signed-off-by: Aman Karmani <aman@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(+)


base-commit: 3bcec58535d395945a390bdc7af4048a7abc60eb

Comments

Anton Khirnov Jan. 4, 2023, 10:39 a.m. UTC | #1
Quoting Aman Karmani (2023-01-02 20:18:36)
> From: Aman Karmani <aman@tmm1.net>
> 
> Signed-off-by: Aman Karmani <aman@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.
diff mbox series

Patch

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);
     ff_mpeg_flush(avctx);
 }