[FFmpeg-cvslog] lavfi/movie: raise filter_frame() error.
Clément Bœsch
git at videolan.org
Wed Mar 13 19:11:10 CET 2013
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Wed Mar 13 09:56:50 2013 +0100| [05854f5505f5a8213024265f76e1f52244874be4] | committer: Clément Bœsch
lavfi/movie: raise filter_frame() error.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=05854f5505f5a8213024265f76e1f52244874be4
---
libavfilter/src_movie.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
index decbc0f..455ebe0 100644
--- a/libavfilter/src_movie.c
+++ b/libavfilter/src_movie.c
@@ -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;
}
More information about the ffmpeg-cvslog
mailing list