[FFmpeg-cvslog] ffmpeg: handle the case when get_filtered_frame() fails
Stefano Sabatini
git at videolan.org
Wed May 25 12:59:05 CEST 2011
ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Fri May 20 00:59:47 2011 +0200| [6b5e1825406a8180c72863bf63964ae50a8499db] | committer: Stefano Sabatini
ffmpeg: handle the case when get_filtered_frame() fails
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6b5e1825406a8180c72863bf63964ae50a8499db
---
ffmpeg.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index af57fc9..7f7e060 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1692,7 +1692,8 @@ static int output_packet(AVInputStream *ist, int ist_index,
while (frame_available) {
AVRational ist_pts_tb;
if (ist->st->codec->codec_type == AVMEDIA_TYPE_VIDEO && ost->output_video_filter)
- get_filtered_video_frame(ost->output_video_filter, &picture, &ost->picref, &ist_pts_tb);
+ if (get_filtered_video_frame(ost->output_video_filter, &picture, &ost->picref, &ist_pts_tb) < 0)
+ goto cont;
if (ost->picref)
ist->pts = av_rescale_q(ost->picref->pts, ist_pts_tb, AV_TIME_BASE_Q);
#endif
More information about the ffmpeg-cvslog
mailing list