diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-01-14 07:31:29 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-18 02:47:36 +0400 |
commit | 7d91fb305e5468e0d911eb12e9b4ba65fbbb99ab (patch) | |
tree | d1a67098f4cf02d648c23c0183b174299492bd3c /ffmpeg.c | |
parent | ed7f1a5c207636c80795e683d7808411d3c7ab3e (diff) |
ffmpeg: check ost->finished in reap_filters()
This avoids finished output streams continuing to receive frames
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1093,6 +1093,10 @@ static int reap_filters(void) } break; } + if (ost->finished) { + av_frame_unref(filtered_frame); + continue; + } frame_pts = AV_NOPTS_VALUE; if (filtered_frame->pts != AV_NOPTS_VALUE) { int64_t start_time = (of->start_time == AV_NOPTS_VALUE) ? 0 : of->start_time; |