diff mbox series

[FFmpeg-devel] avcodec/h264dec: Remove unused coded_picture_number

Message ID GV1P250MB073740DD56BD1D75330162328F022@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 651f3aa7f911d897270ee687128d464bddb7883a
Headers show
Series [FFmpeg-devel] avcodec/h264dec: Remove unused coded_picture_number | expand

Checks

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

Commit Message

Andreas Rheinhardt April 6, 2024, 12:18 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/h264_slice.c | 1 -
 libavcodec/h264dec.h    | 1 -
 2 files changed, 2 deletions(-)

Comments

Andreas Rheinhardt April 7, 2024, 10:52 p.m. UTC | #1
Andreas Rheinhardt:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>  libavcodec/h264_slice.c | 1 -
>  libavcodec/h264dec.h    | 1 -
>  2 files changed, 2 deletions(-)
> 
> diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
> index 4b01c54147..f61af0d6d7 100644
> --- a/libavcodec/h264_slice.c
> +++ b/libavcodec/h264_slice.c
> @@ -388,7 +388,6 @@ int ff_h264_update_thread_context(AVCodecContext *dst,
>  
>      h->width_from_caller    = h1->width_from_caller;
>      h->height_from_caller   = h1->height_from_caller;
> -    h->coded_picture_number = h1->coded_picture_number;
>      h->first_field          = h1->first_field;
>      h->picture_structure    = h1->picture_structure;
>      h->mb_aff_frame         = h1->mb_aff_frame;
> diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h
> index 447c2499d9..fc50df90f2 100644
> --- a/libavcodec/h264dec.h
> +++ b/libavcodec/h264dec.h
> @@ -356,7 +356,6 @@ typedef struct H264Context {
>      int chroma_x_shift, chroma_y_shift;
>  
>      int droppable;
> -    int coded_picture_number;
>  
>      int context_initialized;
>      int flags;

Will apply this patch tomorrow unless there are objections.

- Andreas
diff mbox series

Patch

diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index 4b01c54147..f61af0d6d7 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -388,7 +388,6 @@  int ff_h264_update_thread_context(AVCodecContext *dst,
 
     h->width_from_caller    = h1->width_from_caller;
     h->height_from_caller   = h1->height_from_caller;
-    h->coded_picture_number = h1->coded_picture_number;
     h->first_field          = h1->first_field;
     h->picture_structure    = h1->picture_structure;
     h->mb_aff_frame         = h1->mb_aff_frame;
diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h
index 447c2499d9..fc50df90f2 100644
--- a/libavcodec/h264dec.h
+++ b/libavcodec/h264dec.h
@@ -356,7 +356,6 @@  typedef struct H264Context {
     int chroma_x_shift, chroma_y_shift;
 
     int droppable;
-    int coded_picture_number;
 
     int context_initialized;
     int flags;