diff options
author | James Almer <jamrial@gmail.com> | 2017-10-31 20:59:08 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-11-01 17:55:50 +0300 |
commit | e70cdf91a7bc997f2b6e917f2ee4bfdc25d31684 (patch) | |
tree | e796e7f29b775d5ece0938df7e5771c958d4159d /libavformat/mux.c | |
parent | 502050cb4ca71145e4368f1bd471b09795281caa (diff) |
avformat/mux: be less strict with bitstream filter failures
This makes the autobsf feature behave the same as the manual
bitstream filtering in ffmpeg.c
Fixes ticket #6794
Reviewed-by: rcombs
Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/mux.c')
-rw-r--r-- | libavformat/mux.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c index 77e03ee5ba..1445e7dcd6 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -876,7 +876,9 @@ static int do_packet_auto_bsf(AVFormatContext *s, AVPacket *pkt) { av_log(ctx, AV_LOG_ERROR, "Failed to send packet to filter %s for stream %d\n", ctx->filter->name, pkt->stream_index); - return ret; + if (s->error_recognition & AV_EF_EXPLODE) + return ret; + return 0; } } return 1; |