Commit 349b65ee authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Marton Balint

ffplay: check return code of avcodec_decode_video2()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 718607be
......@@ -1504,7 +1504,8 @@ static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacke
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) {
int ret = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment