You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
ffplay: check return code of avcodec_decode_video2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
committed by
Marton Balint
parent
718607be28
commit
349b65eee2
3
ffplay.c
3
ffplay.c
@@ -1504,7 +1504,8 @@ static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacke
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
avcodec_decode_video2(is->video_st->codec, frame, &got_picture, pkt);
|
if(avcodec_decode_video2(is->video_st->codec, frame, &got_picture, pkt) < 0)
|
||||||
|
return -1;
|
||||||
|
|
||||||
if (got_picture) {
|
if (got_picture) {
|
||||||
int ret = 1;
|
int ret = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user