summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-24 13:27:39 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-24 13:50:02 +0200
commit8f0f678f090d9939b0014ba85641e2cb83d39cb8 (patch)
tree759e46ced8d2625b3dfeade1e57c52c9561d9eb8 /ffmpeg.c
parent49038fc17dd09a94185c787f02479d190894e470 (diff)
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>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index f5029987ad..1cf4487592 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -650,6 +650,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");