[FFmpeg-cvslog] mxfdec: update current edit unit when seeking in mxf files without index tables
Marton Balint
git at videolan.org
Thu Apr 11 13:42:01 CEST 2013
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Thu Apr 11 01:09:40 2013 +0200| [f1e606c762a33e19c5181f3c11f47c7ecd7cbb21] | committer: Michael Niedermayer
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 at passwd.hu>
Reviewed-by: Tomas Härdin <tomas.hardin at codemill.se>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f1e606c762a33e19c5181f3c11f47c7ecd7cbb21
---
libavformat/mxfdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index ac3f13c..9eeba55 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -2454,6 +2454,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];
More information about the ffmpeg-cvslog
mailing list