lavf: Fix try_decode_frame() so it doesnt loop infinitely.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f37174bc19
commit
6072a19b4f
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue