[FFmpeg-devel] [PATCH 16/25] lavf/avformat.h: drop the avcodec.h include

Michael Niedermayer michael at niedermayer.cc
Sun May 23 21:05:15 EEST 2021


On Fri, May 21, 2021 at 08:00:47PM +0200, Anton Khirnov wrote:
> Since AVStream.codec is gone, avformat.h does not require anything from
> avcodec.h.
> ---
>  libavformat/avformat.h | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)

seems to break alltools build here

tools/uncoded_frame.c: In function ‘main’:
tools/uncoded_frame.c:179:52: error: implicit declaration of function ‘av_get_pcm_codec’; did you mean ‘av_guess_codec’? [-Werror=implicit-function-declaration]
             st->stream->codecpar->codec_id       = av_get_pcm_codec(st->stream->codecpar->format, -1);
                                                    ^~~~~~~~~~~~~~~~
                                                    av_guess_codec
cc1: some warnings being treated as errors
ffbuild/common.mak:67: recipe for target 'tools/uncoded_frame.o' failed
make: *** [tools/uncoded_frame.o] Error 1

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210523/59d9246f/attachment.sig>


More information about the ffmpeg-devel mailing list