mirror of https://git.ffmpeg.org/ffmpeg.git
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 8f0f678f09
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
48127e2ad6
commit
3b136179a3
1
ffmpeg.c
1
ffmpeg.c
|
@ -649,6 +649,7 @@ static void write_frame(AVFormatContext *s, AVPacket *pkt, OutputStream *ost)
|
||||||
if (!new_pkt.buf)
|
if (!new_pkt.buf)
|
||||||
exit_program(1);
|
exit_program(1);
|
||||||
} else if (a < 0) {
|
} 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",
|
av_log(NULL, AV_LOG_ERROR, "Failed to open bitstream filter %s for stream %d with codec %s",
|
||||||
bsfc->filter->name, pkt->stream_index,
|
bsfc->filter->name, pkt->stream_index,
|
||||||
avctx->codec ? avctx->codec->name : "copy");
|
avctx->codec ? avctx->codec->name : "copy");
|
||||||
|
|
Loading…
Reference in New Issue