Commit 6072a19b authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f37174bc
...@@ -2273,6 +2273,8 @@ static int try_decode_frame(AVStream *st, AVPacket *avpkt, AVDictionary **option ...@@ -2273,6 +2273,8 @@ static int try_decode_frame(AVStream *st, AVPacket *avpkt, AVDictionary **option
pkt.size -= ret; pkt.size -= ret;
} }
} }
if(!pkt.data && !got_picture)
return -1;
return ret; return ret;
} }
......
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