diff mbox series

[FFmpeg-devel,06/15] avcodec/avcodec: Remove unnecessary forward declaration

Message ID GV1P250MB0737801000661E6A60D9B34E8F0BA@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 7469f2ec0ab31c91b409644867c0e977db50a4b0
Headers show
Series [FFmpeg-devel,1/5] avcodec/nvdec_(mjpeg|vp8): Constify AVHWAccels | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Aug. 2, 2023, 10:58 a.m. UTC
This would only be necessary if this header declared a function
that takes a (pointer to) struct AVCodecContext as parameter.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/avcodec.h | 2 --
 1 file changed, 2 deletions(-)

Comments

Andreas Rheinhardt Aug. 4, 2023, 10:06 a.m. UTC | #1
Andreas Rheinhardt:
> This would only be necessary if this header declared a function
> that takes a (pointer to) struct AVCodecContext as parameter.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>  libavcodec/avcodec.h | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index a2680256d7..649411ac79 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -421,8 +421,6 @@ typedef struct RcOverride{
>   */
>  #define AV_GET_ENCODE_BUFFER_FLAG_REF (1 << 0)
>  
> -struct AVCodecInternal;
> -
>  /**
>   * main external API structure.
>   * New fields can be added to the end with minor version bumps.

Will apply the part of this patchset that does not deal with the
addition of hwaccel_internal.h tomorrow unless there are objections.
Also: Ping for the hwaccel_internal.h patches.

- Andreas
diff mbox series

Patch

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index a2680256d7..649411ac79 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -421,8 +421,6 @@  typedef struct RcOverride{
  */
 #define AV_GET_ENCODE_BUFFER_FLAG_REF (1 << 0)
 
-struct AVCodecInternal;
-
 /**
  * main external API structure.
  * New fields can be added to the end with minor version bumps.