[FFmpeg-devel] [PATCH 2/2] avformat/mux: Apply auto bsfs in av_write_frame() too

Steven Liu lingjiujianke at gmail.com
Thu Jul 14 01:22:40 EEST 2016


2016-07-14 1:08 GMT+08:00 Michael Niedermayer <michael at niedermayer.cc>:

> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  libavformat/mux.c |    4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/libavformat/mux.c b/libavformat/mux.c
> index 5cb0ca7..d674bd4 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);
>
>
LGTM,Thanks


More information about the ffmpeg-devel mailing list