diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-24 13:27:39 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-20 14:38:26 +0200 |
commit | 925adad3e07421daddc73148af87d91550a2c6b5 (patch) | |
tree | 6acdb4865b2e3db60b206be86d6c3df23bf02cf2 | |
parent | 286e14667fe4ac58e4951c29fe6e2a83f4c96913 (diff) | |
download | ffmpeg-925adad3e07421daddc73148af87d91550a2c6b5.tar.gz |
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>
-rw-r--r-- | ffmpeg.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -645,6 +645,7 @@ static void write_frame(AVFormatContext *s, AVPacket *pkt, OutputStream *ost) if (!new_pkt.buf) exit_program(1); } else if (a < 0) { + new_pkt = *pkt; av_log(NULL, AV_LOG_ERROR, "Failed to open bitstream filter %s for stream %d with codec %s", bsfc->filter->name, pkt->stream_index, avctx->codec ? avctx->codec->name : "copy"); |