Browse Source

avconv: fix behavior with -ss as an output option.

Don't return from poll_filters() immediately, there may be other frames
and/or other streams to handle.

Fixes a memleak.
tags/n0.11
Anton Khirnov 13 years ago
parent
commit
01e98b1b00
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      avconv.c

+ 4
- 2
avconv.c View File

@@ -1704,8 +1704,10 @@ static int poll_filters(void)
AV_TIME_BASE_Q,
ost->st->codec->time_base);

if (of->start_time && filtered_frame->pts < of->start_time)
return 0;
if (of->start_time && filtered_frame->pts < of->start_time) {
avfilter_unref_buffer(picref);
continue;
}

switch (ost->filter->filter->inputs[0]->type) {
case AVMEDIA_TYPE_VIDEO:


Loading…
Cancel
Save