Skip to content
Snippets Groups Projects
Commit f1e606c7 authored by Marton Balint's avatar Marton Balint Committed by Michael Niedermayer
Browse files

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: default avatarMarton Balint <cus@passwd.hu>
Reviewed-by: default avatarTomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent eeb6efcd
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment