]> git.sesse.net Git - ffmpeg/commit
avformat/mpeg: Make VobSub demuxer have its own context struct
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 4 Dec 2019 12:37:12 +0000 (13:37 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 5 Dec 2019 16:22:40 +0000 (17:22 +0100)
commit3f37880c05714ede6590fb32390ed991552d5115
treed693d41957b00f6d06d3ec2f0debfb2976fa36a5
parentd5274f86a838ae5f9d56f41c6ee520cce466bd83
avformat/mpeg: Make VobSub demuxer have its own context struct

When the VobSub demuxer was added, the fields it required were simply
added to the MpegDemuxContext (if the VobSub demuxer was selected at
all). The mpeg demuxer of course doesn't use these fields even if they
are there; and the VobSub demuxer doesn't use the old ones: It opens an
mpeg subdemuxer of its own and uses this where a mpeg demuxer is
required. Hence the two contexts can be split, saving memory.

Furthermore several headers can now be moved to the section that is
guarded by #if CONFIG_VOBSUB_DEMUXER (this even includes avassert.h
which was unguarded and has been added in 9cde9f70 despite not being
used in that patch).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mpeg.c