diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-27 09:24:10 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-17 14:42:17 +0200 |
commit | bde2cdfe9b570fdff2e741d68758e23271b9527c (patch) | |
tree | 22953ac8c78398cffb6bcd0bde4873cca640bbe3 /libavformat/internal.h | |
parent | cf7c51f24ba5ea7196e89a205c1860048e2226b5 (diff) | |
download | ffmpeg-bde2cdfe9b570fdff2e741d68758e23271b9527c.tar.gz |
avformat/utils: Move demuxing code out into a new file
libavformat/utils.c has over 4800 lines and is supposed to contain
"various utility functions for use within FFmpeg". In reality it
contains all that and the whole demuxing core of libavformat.
This is especially bad, because said file includes the FFMPEG_VERSION
(the git commit sha) so that it is rebuilt whenever the commit HEAD
points to changes. Therefore this commit makes it smaller by moving
the demuxing code out to a new file, demux.c (in analogy to mux.c
for the muxing code).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index d0b9d6200a..d14dee5422 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -652,6 +652,8 @@ void ff_reduce_index(AVFormatContext *s, int stream_index); enum AVCodecID ff_guess_image2_codec(const char *filename); +const AVCodec *ff_find_decoder(AVFormatContext *s, const AVStream *st, + enum AVCodecID codec_id); /** * Perform a binary search using av_index_search_timestamp() and * AVInputFormat.read_timestamp(). |