Browse Source

ffmpeg: check ost->finished in reap_filters()

This avoids finished output streams continuing to receive frames

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 11 years ago
parent
commit
7d91fb305e
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      ffmpeg.c

+ 4
- 0
ffmpeg.c View File

@@ -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;


Loading…
Cancel
Save