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>
This commit is contained in:
Marton Balint 2013-04-11 01:09:40 +02:00 committed by Michael Niedermayer
parent eeb6efcd58
commit f1e606c762

View File

@ -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) if ((ret = avio_seek(s->pb, (s->bit_rate * seconds) >> 3, SEEK_SET)) < 0)
return ret; return ret;
ff_update_cur_dts(s, st, sample_time); ff_update_cur_dts(s, st, sample_time);
mxf->current_edit_unit = sample_time;
} else { } else {
t = &mxf->index_tables[0]; t = &mxf->index_tables[0];