[FFmpeg-cvslog] avformat/omadec: Subtract headersize in timestamp calculation

Michael Niedermayer git at videolan.org
Sat Feb 7 21:37:59 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Feb  7 21:16:20 2015 +0100| [29fd3032cc961c02acd45ef63aa3e687f5cd15af] | committer: Michael Niedermayer

avformat/omadec: Subtract headersize in timestamp calculation

Fixes pts/dts

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=29fd3032cc961c02acd45ef63aa3e687f5cd15af
---

 libavformat/omadec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/omadec.c b/libavformat/omadec.c
index 6f3671b..2cb63ff 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);
     }
 



More information about the ffmpeg-cvslog mailing list