aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-07 21:16:20 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-07 21:16:20 +0100
commit29fd3032cc961c02acd45ef63aa3e687f5cd15af (patch)
treea59bceded170f7ce1004248816a849a15e93cbfd
parent7c2fa13df9a6130b3f258c7513933cbdca2fe23b (diff)
downloadffmpeg-29fd3032cc961c02acd45ef63aa3e687f5cd15af.tar.gz
avformat/omadec: Subtract headersize in timestamp calculation
Fixes pts/dts Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/omadec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/omadec.c b/libavformat/omadec.c
index 6f3671b8e9..2cb63ff604 100644
--- a/libavformat/omadec.c
+++ b/libavformat/omadec.c
@@ -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);
}