avformat/mux: be less strict with bitstream filter failures
authorJames Almer <jamrial@gmail.com>
Tue, 31 Oct 2017 17:59:08 +0000 (14:59 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 1 Nov 2017 14:55:50 +0000 (11:55 -0300)
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>
libavformat/mux.c

index 77e03ee..1445e7d 100644 (file)
@@ -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;