[FFmpeg-devel] [PATCH] avformat/mux: be less strict with bitstream filter failures
James Almer
jamrial at gmail.com
Tue Oct 31 20:00:57 EET 2017
This makes the autobsf feature behave the same as the manual
bitstream filtering in ffmpeg.c
Fixes ticket #6794
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavformat/mux.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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;
--
2.14.2
More information about the ffmpeg-devel
mailing list