diff options
author | Marton Balint <cus@passwd.hu> | 2020-04-18 10:49:54 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2020-04-26 22:39:01 +0200 |
commit | 1128aa875367f66ac11adc30364d5652919a2591 (patch) | |
tree | 72a92801d4bff46f69093b364cc3bf2016d87ff7 /libavformat/segment.c | |
parent | 499f43ae90c0b03264e874c199a5904280766782 (diff) | |
download | ffmpeg-1128aa875367f66ac11adc30364d5652919a2591.tar.gz |
avformat: only allow a single bitstream filter when muxing
Current muxers only use a single bitstream filter, so there is no need to
maintain code which operates on a list of bitstream filters. When multiple
bitstream filters are needed muxers can simply use a list bitstream filter.
If there is a use case in the future when different bitstream filters should be
added at subsequent packets then a new API possibly involving reconfiguring the
list bitstream filter can be added knowing the exact requirements.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/segment.c')
-rw-r--r-- | libavformat/segment.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c index 60b72b7d15..32c09827eb 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -1034,10 +1034,8 @@ static int seg_check_bitstream(struct AVFormatContext *s, const AVPacket *pkt) if (ret == 1) { AVStream *st = s->streams[pkt->stream_index]; AVStream *ost = oc->streams[pkt->stream_index]; - st->internal->bsfcs = ost->internal->bsfcs; - st->internal->nb_bsfcs = ost->internal->nb_bsfcs; - ost->internal->bsfcs = NULL; - ost->internal->nb_bsfcs = 0; + st->internal->bsfc = ost->internal->bsfc; + ost->internal->bsfc = NULL; } return ret; } |