summaryrefslogtreecommitdiff
path: root/libavformat/flvdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-10-06 00:17:40 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-10-06 01:22:35 +0200
commite34ba5ec53b9dae8d0caeade31012d45601fb904 (patch)
treea0c540d4706d111716ae3ec4de51d0d4f201e78d /libavformat/flvdec.c
parentcb912b452192009683ec0dad2ea7a9daa5bd6958 (diff)
avformat/flvdec: Remove dead loop
Fixes CID1325682 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r--libavformat/flvdec.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 8f21fc13fb..bd49e9f593 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -851,7 +851,6 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
retry:
/* pkt size is repeated at end. skip it */
- for (;; last = avio_rb32(s->pb)) {
pos = avio_tell(s->pb);
type = (avio_r8(s->pb) & 0x1F);
orig_size =
@@ -975,8 +974,6 @@ skip:
ret = AVERROR(EAGAIN);
goto leave;
}
- break;
- }
// if not streamed and no duration from metadata then seek to end to find
// the duration from the timestamps