[FFmpeg-cvslog] ffplay: fix return value of get_video_frame if avcodec_decode_video fails

Marton Balint git at videolan.org
Sat Jun 9 20:13:33 CEST 2012


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sat Jun  9 19:44:58 2012 +0200| [143a5390bfc23675529cffcf6186f8cb2e098341] | committer: Marton Balint

ffplay: fix return value of get_video_frame if avcodec_decode_video fails

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=143a5390bfc23675529cffcf6186f8cb2e098341
---

 ffplay.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index c8d768f..7cd3ba2 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1505,7 +1505,7 @@ static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacke
     }
 
     if(avcodec_decode_video2(is->video_st->codec, frame, &got_picture, pkt) < 0)
-        return -1;
+        return 0;
 
     if (got_picture) {
         int ret = 1;



More information about the ffmpeg-cvslog mailing list