Commit 01e98b1b authored by Anton Khirnov's avatar Anton Khirnov

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.
parent 7d7b40f4
...@@ -1704,8 +1704,10 @@ static int poll_filters(void) ...@@ -1704,8 +1704,10 @@ static int poll_filters(void)
AV_TIME_BASE_Q, AV_TIME_BASE_Q,
ost->st->codec->time_base); ost->st->codec->time_base);
if (of->start_time && filtered_frame->pts < of->start_time) if (of->start_time && filtered_frame->pts < of->start_time) {
return 0; avfilter_unref_buffer(picref);
continue;
}
switch (ost->filter->filter->inputs[0]->type) { switch (ost->filter->filter->inputs[0]->type) {
case AVMEDIA_TYPE_VIDEO: case AVMEDIA_TYPE_VIDEO:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment