From 143a5390bfc23675529cffcf6186f8cb2e098341 Mon Sep 17 00:00:00 2001
From: Marton Balint <cus@passwd.hu>
Date: Sat, 9 Jun 2012 19:44:58 +0200
Subject: ffplay: fix return value of get_video_frame if avcodec_decode_video
 fails

Signed-off-by: Marton Balint <cus@passwd.hu>
---
 ffplay.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'ffplay.c')

diff --git a/ffplay.c b/ffplay.c
index c8d768fb27..7cd3ba2d85 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;
-- 
cgit v1.2.3