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

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Mon Apr 8 01:52:10 EEST 2024


Andreas Rheinhardt:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at 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



More information about the ffmpeg-devel mailing list