[libav-devel] [PATCH 1/3] mxfdec: update current edit unit when seeking in mxf files without index tables

Anton Khirnov anton at khirnov.net
Mon Nov 4 18:08:30 CET 2013


From: Marton Balint <cus at passwd.hu>

Fixes audio packet pts values in some files generated by AVID TRMG 3.01.

Signed-off-by: Marton Balint <cus at passwd.hu>
Reviewed-by: Tomas Härdin <tomas.hardin at codemill.se>
Signed-off-by: Anton Khirnov <anton at khirnov.net>
---
 libavformat/mxfdec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index dedf636..3fcdb82 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];
 
-- 
1.7.10.4



More information about the libav-devel mailing list