Browse code

ffmpeg: Do not use the data/size of a bitstream filter after failure

Found-by: Rodger Combs
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 8f0f678f090d9939b0014ba85641e2cb83d39cb8)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2015/06/24 20:27:39
Showing 1 changed files
... ...
@@ -645,6 +645,7 @@ static void write_frame(AVFormatContext *s, AVPacket *pkt, OutputStream *ost)
645 645
             if (!new_pkt.buf)
646 646
                 exit_program(1);
647 647
         } else if (a < 0) {
648
+            new_pkt = *pkt;
648 649
             av_log(NULL, AV_LOG_ERROR, "Failed to open bitstream filter %s for stream %d with codec %s",
649 650
                    bsfc->filter->name, pkt->stream_index,
650 651
                    avctx->codec ? avctx->codec->name : "copy");