History

avcodec/codec_internal: remove unnecessary avcodec.h include

James Almer committed 1 year ago

Commit 7e848651 parent cd81f082 files · +4 −3Browse files

Unified · Split

2 files
  1. libavcodec/allcodecs.c +1 −0
  2. libavcodec/codec_internal.h +3 −3
libavcodec/allcodecs.c+1−0
@@ -29,6 +29,7 @@ · 28 unmodified lines
2929
3030 #include "config.h"
3131 #include "libavutil/thread.h"
32+#include "avcodec.h"
3233 #include "codec.h"
3334 #include "codec_id.h"
3435 #include "codec_internal.h"
libavcodec/codec_internal.h+3−3
@@ -22,7 +22,6 @@ · 21 unmodified lines
2222 #include <stdint.h>
2323
2424 #include "libavutil/attributes.h"
25−#include "avcodec.h"
2625 #include "codec.h"
2726 #include "config.h"
2827
@@ -102,6 +101,7 @@ typedef struct FFCodecDefault { · 73 unmodified lines
102101 struct AVCodecContext;
103102 struct AVSubtitle;
104103 struct AVPacket;
104+enum AVCodecConfig;
105105
106106 enum FFCodecType {
107107 /* The codec is a decoder using the decode callback;
@@ -268,7 +268,7 @@ typedef struct FFCodec { · 160 unmodified lines
268268 * ff_default_get_supported_config() will be used. `out_num_configs` will
269269 * always be set to a valid pointer.
270270 */
271− int (*get_supported_config)(const AVCodecContext *avctx,
271+ int (*get_supported_config)(const struct AVCodecContext *avctx,
272272 const AVCodec *codec,
273273 enum AVCodecConfig config,
274274 unsigned flags,
@@ -283,7 +283,7 @@ typedef struct FFCodec { · 8 unmodified lines
283283 * For AVCODEC_CONFIG_COLOR_RANGE, the output will depend on the bitmask in
284284 * FFCodec.color_ranges, with a value of 0 returning NULL.
285285 */
286−int ff_default_get_supported_config(const AVCodecContext *avctx,
286+int ff_default_get_supported_config(const struct AVCodecContext *avctx,
287287 const AVCodec *codec,
288288 enum AVCodecConfig config,
289289 unsigned flags,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t