[FFmpeg-cvslog] ffmpeg: Do not use the data/size of a bitstream filter after failure
Michael Niedermayer
git at videolan.org
Mon Jul 20 10:48:23 CEST 2015
ffmpeg | branch: release/2.6 | Michael Niedermayer <michaelni at gmx.at> | Wed Jun 24 13:27:39 2015 +0200| [3b136179a3087e0a6c005348407c66898606049d] | committer: Michael Niedermayer
ffmpeg: Do not use the data/size of a bitstream filter after failure
Found-by: Rodger Combs
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 8f0f678f090d9939b0014ba85641e2cb83d39cb8)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3b136179a3087e0a6c005348407c66898606049d
---
ffmpeg.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ffmpeg.c b/ffmpeg.c
index a37bcd8..9f3e606 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");
More information about the ffmpeg-cvslog
mailing list