1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

ffplay: fix video_thread when no frame is returned in get_video_frame

Affects only ffplay build with avfilter disabled.

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint 2012-04-22 02:53:29 +02:00
parent 4c73b3b1e0
commit 89080a0a5e

View File

@ -1872,6 +1872,8 @@ static int video_thread(void *arg)
ret = get_video_frame(is, frame, &pts_int, &pkt);
pos = pkt.pos;
av_free_packet(&pkt);
if (ret == 0)
continue;
#endif
if (ret < 0)