aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mxfdec.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2013-04-11 01:09:40 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-04-11 13:35:58 +0200
commitf1e606c762a33e19c5181f3c11f47c7ecd7cbb21 (patch)
tree82f58753779c6ef8118487c30f7b980ea584a7c7 /libavformat/mxfdec.c
parenteeb6efcd58bc4a4022bf4b3e807d02ce66cad839 (diff)
downloadffmpeg-f1e606c762a33e19c5181f3c11f47c7ecd7cbb21.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: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mxfdec.c')
-rw-r--r--libavformat/mxfdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index ac3f13c680..9eeba55a5a 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];