Skip to content
Snippets Groups Projects
Commit 29fd3032 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avformat/omadec: Subtract headersize in timestamp calculation


Fixes pts/dts

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 7c2fa13d
No related branches found
No related tags found
No related merge requests found
......@@ -430,9 +430,9 @@ static int oma_read_packet(AVFormatContext *s, AVPacket *pkt)
pkt->stream_index = 0;
if (pos > 0 && byte_rate > 0) {
if (pos >= oc->content_start && byte_rate > 0) {
pkt->pts =
pkt->dts = av_rescale(pos, st->time_base.den,
pkt->dts = av_rescale(pos - oc->content_start, st->time_base.den,
byte_rate * (int64_t)st->time_base.num);
}
......
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