[FFmpeg-cvslog] avformat/flvdec: Remove dead loop
Michael Niedermayer
git at videolan.org
Tue Oct 6 01:47:33 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Tue Oct 6 00:17:40 2015 +0200| [e34ba5ec53b9dae8d0caeade31012d45601fb904] | committer: Michael Niedermayer
avformat/flvdec: Remove dead loop
Fixes CID1325682
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e34ba5ec53b9dae8d0caeade31012d45601fb904
---
libavformat/flvdec.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 8f21fc1..bd49e9f 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
More information about the ffmpeg-cvslog
mailing list