aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-01-04 04:08:46 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-01-04 04:08:46 +0100
commit6072a19b4f311cb172d45e90daad90824e40e4b6 (patch)
tree2366f3155b5c03aa2f03a044f191dc4ccf8ba45c /libavformat/utils.c
parentf37174bc1913d534913e8825f1609a637cc4b364 (diff)
downloadffmpeg-6072a19b4f311cb172d45e90daad90824e40e4b6.tar.gz
lavf: Fix try_decode_frame() so it doesnt loop infinitely.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index e8fefe6514..2eba3bafc1 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -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;
}