1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-17 20:17:55 +02:00

lavf: Fix try_decode_frame() so it doesnt loop infinitely.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-01-04 04:08:46 +01:00
parent f37174bc19
commit 6072a19b4f

View File

@ -2273,6 +2273,8 @@ static int try_decode_frame(AVStream *st, AVPacket *avpkt, AVDictionary **option
pkt.size -= ret;
}
}
if(!pkt.data && !got_picture)
return -1;
return ret;
}