diff --git a/libavformat/demux.c b/libavformat/demux.c index 1ef297d5e7..b218f64574 100644 --- a/libavformat/demux.c +++ b/libavformat/demux.c @@ -36,6 +36,7 @@ #include "libavcodec/avcodec.h" #include "libavcodec/bsf.h" +#include "libavcodec/codec_desc.h" #include "libavcodec/internal.h" #include "libavcodec/packet_internal.h" #include "libavcodec/raw.h" diff --git a/libavformat/internal.h b/libavformat/internal.h index 9fc980601f..594afd731d 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -23,7 +23,6 @@ #include -#include "libavcodec/codec_desc.h" #include "libavcodec/packet_internal.h" #include "avformat.h" @@ -410,7 +409,7 @@ typedef struct FFStream { int64_t first_dts; int64_t cur_dts; - const AVCodecDescriptor *codec_desc; + const struct AVCodecDescriptor *codec_desc; } FFStream; static av_always_inline FFStream *ffstream(AVStream *st)