diff options
author | Marton Balint <cus@passwd.hu> | 2012-06-09 19:44:58 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2012-06-09 19:45:10 +0200 |
commit | 143a5390bfc23675529cffcf6186f8cb2e098341 (patch) | |
tree | e697eb4137ca4872b8dca80d58c939952fad5eda /ffplay.c | |
parent | 7655cc395db18a854e624771b59033194b67f2b5 (diff) | |
download | ffmpeg-143a5390bfc23675529cffcf6186f8cb2e098341.tar.gz |
ffplay: fix return value of get_video_frame if avcodec_decode_video fails
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |