lavfi/movie: raise filter_frame() error.

This commit is contained in:
Clément Bœsch 2013-03-13 09:56:50 +01:00
parent bdbdadbaff
commit 05854f5505
1 changed files with 3 additions and 1 deletions

View File

@ -549,9 +549,11 @@ static int movie_push_frame(AVFilterContext *ctx, unsigned out_id)
describe_frameref(movie->frame, outlink));
movie->frame->pts = av_frame_get_best_effort_timestamp(movie->frame);
ff_filter_frame(outlink, movie->frame); // FIXME: raise error properly
ret = ff_filter_frame(outlink, movie->frame);
movie->frame = NULL;
if (ret < 0)
return ret;
return pkt_out_id == out_id;
}