summaryrefslogtreecommitdiff
path: root/libavformat/mvdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/mvdec.c')
-rw-r--r--libavformat/mvdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mvdec.c b/libavformat/mvdec.c
index c58567cad4..03471f1556 100644
--- a/libavformat/mvdec.c
+++ b/libavformat/mvdec.c
@@ -372,7 +372,7 @@ static int mv_read_packet(AVFormatContext *avctx, AVPacket *pkt)
int ret;
uint64_t pos;
- if (frame < st->nb_frames) {
+ if (frame < st->nb_index_entries) {
index = &st->index_entries[frame];
pos = avio_tell(pb);
if (index->pos > pos)