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>
This commit is contained in:
Michael Niedermayer 2016-07-13 19:08:45 +02:00
parent de9674c5ea
commit a2c90d5f98
1 changed files with 4 additions and 0 deletions

View File

@ -893,6 +893,10 @@ int av_write_frame(AVFormatContext *s, AVPacket *pkt)
return 1; return 1;
} }
ret = do_packet_auto_bsf(s, pkt);
if (ret <= 0)
return ret;
#if FF_API_COMPUTE_PKT_FIELDS2 && FF_API_LAVF_AVCTX #if FF_API_COMPUTE_PKT_FIELDS2 && FF_API_LAVF_AVCTX
ret = compute_muxer_pkt_fields(s, s->streams[pkt->stream_index], pkt); ret = compute_muxer_pkt_fields(s, s->streams[pkt->stream_index], pkt);