summaryrefslogtreecommitdiff
path: root/libavformat/mux.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-07-13 19:08:45 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-07-14 17:51:57 +0200
commita2c90d5f9828fed298a0b6ac87067a01216b0395 (patch)
treeafd5b6a728cd0441cbd82611009e3e7e6917deac /libavformat/mux.c
parentde9674c5eacc076894bd0f94bee0001ba6ab8344 (diff)
avformat/mux: Apply auto bsfs in av_write_frame() too
Reviewed-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/mux.c')
-rw-r--r--libavformat/mux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c
index 5cb0ca7482..d674bd4a76 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -893,6 +893,10 @@ int av_write_frame(AVFormatContext *s, AVPacket *pkt)
return 1;
}
+ ret = do_packet_auto_bsf(s, pkt);
+ if (ret <= 0)
+ return ret;
+
#if FF_API_COMPUTE_PKT_FIELDS2 && FF_API_LAVF_AVCTX
ret = compute_muxer_pkt_fields(s, s->streams[pkt->stream_index], pkt);