diff options
author | Marton Balint <cus@passwd.hu> | 2013-04-11 01:09:40 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-11-14 18:59:17 +0100 |
commit | 951d819006730145255333749367c4ea722ffd9b (patch) | |
tree | 1f496d607e4796d730f7fb3d5d20da74f4f6c00e | |
parent | ad1161799e096c4bae885f100f27f886755d479a (diff) | |
download | ffmpeg-951d819006730145255333749367c4ea722ffd9b.tar.gz |
mxfdec: update current edit unit when seeking in mxf files without index tables
Fixes audio packet pts values in some files generated by AVID TRMG 3.01.
Signed-off-by: Marton Balint <cus@passwd.hu>
Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r-- | libavformat/mxfdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index dedf636e17..3fcdb8220f 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -2230,6 +2230,7 @@ static int mxf_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti if ((ret = avio_seek(s->pb, (s->bit_rate * seconds) >> 3, SEEK_SET)) < 0) return ret; ff_update_cur_dts(s, st, sample_time); + mxf->current_edit_unit = sample_time; } else { t = &mxf->index_tables[0]; |