mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
ffmpeg/flush_encoders: dont mux packets once ost->finished has been set
Fixes muxing frames after av_interleaved_write_frame() failure Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
706741e8d7
commit
5c459504f6
4
ffmpeg.c
4
ffmpeg.c
@ -1389,6 +1389,10 @@ static void flush_encoders(void)
|
||||
stop_encoding = 1;
|
||||
break;
|
||||
}
|
||||
if (ost->finished > 1) {
|
||||
av_free_packet(&pkt);
|
||||
continue;
|
||||
}
|
||||
if (pkt.pts != AV_NOPTS_VALUE)
|
||||
pkt.pts = av_rescale_q(pkt.pts, enc->time_base, ost->st->time_base);
|
||||
if (pkt.dts != AV_NOPTS_VALUE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user