1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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>
This commit is contained in:
Andreas Rheinhardt 2021-08-27 09:24:10 +02:00
parent cf7c51f24b
commit bde2cdfe9b
4 changed files with 2966 additions and 2935 deletions

View File

@ -8,6 +8,7 @@ HEADERS = avformat.h \
OBJS = allformats.o \
avio.o \
aviobuf.o \
demux.o \
dump.o \
format.o \
id3v1.o \

2960
libavformat/demux.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -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().

File diff suppressed because it is too large Load Diff