diff options
author | Janne Grunau <janne-libav@jannau.net> | 2012-10-26 20:01:43 +0200 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-11-15 17:37:09 +0100 |
commit | c84cce5a99b85737154bf7559a4bf38593b54a75 (patch) | |
tree | 1d223ab581dec7b7ee919f2d05bbe3aa714e3fa1 /libavformat | |
parent | a4cd2ad89aa67533ff69de49612c747825c3f96f (diff) | |
download | ffmpeg-c84cce5a99b85737154bf7559a4bf38593b54a75.tar.gz |
mxfdec: fix typo in mxf_read_seek()
Check the number of index tables before using byte offset based seeking
instead of the index_tables pointer.
Found by Måns Rullgård <mans@mansr.com>.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mxfdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 8595d72083..61b9c687e1 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -2210,7 +2210,7 @@ static int mxf_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti int ret; MXFIndexTable *t; - if (mxf->index_tables <= 0) { + if (mxf->nb_index_tables <= 0) { if (!s->bit_rate) return AVERROR_INVALIDDATA; if (sample_time < 0) |