Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/ffmdec.c')
-rw-r--r--libavformat/ffmdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c
index 280a24cb38..96527a3aa5 100644
--- a/libavformat/ffmdec.c
+++ b/libavformat/ffmdec.c
@@ -434,7 +434,7 @@ static int ffm2_read_header(AVFormatContext *s)
}
/* get until end of block reached */
- while ((avio_tell(pb) % ffm->packet_size) != 0)
+ while ((avio_tell(pb) % ffm->packet_size) != 0 && !pb->eof_reached)
avio_r8(pb);
/* init packet demux */
@@ -561,7 +561,7 @@ static int ffm_read_header(AVFormatContext *s)
}
/* get until end of block reached */
- while ((avio_tell(pb) % ffm->packet_size) != 0)
+ while ((avio_tell(pb) % ffm->packet_size) != 0 && !pb->eof_reached)
avio_r8(pb);
/* init packet demux */