[FFmpeg-cvslog] mxfdec: fix typo in mxf_read_seek()
Janne Grunau
git at videolan.org
Fri Nov 16 13:16:24 CET 2012
ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Fri Oct 26 20:01:43 2012 +0200| [c84cce5a99b85737154bf7559a4bf38593b54a75] | committer: Janne Grunau
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 at mansr.com>.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c84cce5a99b85737154bf7559a4bf38593b54a75
---
libavformat/mxfdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 8595d72..61b9c68 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)
More information about the ffmpeg-cvslog
mailing list