mxfdec: fix index_tables check in mxf_read_seek()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 19 Sep 2012 22:52:26 +0000 (00:52 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 20 Sep 2012 10:54:00 +0000 (12:54 +0200)
Approved-by: Tjoppen
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mxfdec.c

index 3ddeb99..16b8c12 100644 (file)
@@ -2202,7 +2202,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)