You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-09-16 08:36:51 +02:00
ffplay: fix return value of get_video_frame if avcodec_decode_video fails
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
2
ffplay.c
2
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)
|
if(avcodec_decode_video2(is->video_st->codec, frame, &got_picture, pkt) < 0)
|
||||||
return -1;
|
return 0;
|
||||||
|
|
||||||
if (got_picture) {
|
if (got_picture) {
|
||||||
int ret = 1;
|
int ret = 1;
|
||||||
|
Reference in New Issue
Block a user