[FFmpeg-cvslog] mxfdec: fix index_tables check in mxf_read_seek()

Michael Niedermayer git at videolan.org
Thu Sep 20 12:57:59 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Sep 20 00:52:26 2012 +0200| [db0087dc1d7fd449a9d501cbc6c6e08741a2bad0] | committer: Michael Niedermayer

mxfdec: fix index_tables check in mxf_read_seek()

Approved-by: Tjoppen
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=db0087dc1d7fd449a9d501cbc6c6e08741a2bad0
---

 libavformat/mxfdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 3ddeb99..16b8c12 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -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)



More information about the ffmpeg-cvslog mailing list