lavf: Fix try_decode_frame() so it doesnt loop infinitely.
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 4 Jan 2012 03:08:46 +0000 (04:08 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 4 Jan 2012 03:08:46 +0000 (04:08 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c

index e8fefe6..2eba3ba 100644 (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;
 }