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/dashenc.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/dashenc.c')
-rw-r--r-- | libavformat/dashenc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index b08253618d..9f83785792 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -2325,10 +2325,8 @@ static int dash_check_bitstream(struct AVFormatContext *s, const AVPacket *avpkt if (ret == 1) { AVStream *st = s->streams[avpkt->stream_index]; AVStream *ost = oc->streams[0]; - 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; } |