Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-24 14:27:39 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-20 05:43:40 +0300
commit3b136179a3087e0a6c005348407c66898606049d (patch)
tree0912fab5c0dcdf96f2b1e2124ce6746108a2c6b8
parent48127e2ad6e25721dd4a371df897d9f88553abe1 (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> (cherry picked from commit 8f0f678f090d9939b0014ba85641e2cb83d39cb8) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index a37bcd814b..9f3e6068f4 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -649,6 +649,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");