diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2017-02-11 18:53:18 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2017-02-11 19:01:14 +0100 |
commit | 5b2c0eebeea9994d251765f92d37a20a902b1a02 (patch) | |
tree | 9939d67d781d79fc0f66a1a8e6df1610bed4bde6 | |
parent | 350ce0b9d3d5e531f1dcc3bed7641eba803512d7 (diff) | |
download | ffmpeg-5b2c0eebeea9994d251765f92d37a20a902b1a02.tar.gz |
lavf/omadec: Fix packet duration for Atrac 3 lossless.
-rw-r--r-- | libavformat/omadec.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libavformat/omadec.c b/libavformat/omadec.c index 321e77ea81..fa53636f1a 100644 --- a/libavformat/omadec.c +++ b/libavformat/omadec.c @@ -374,8 +374,13 @@ static int aal_read_packet(AVFormatContext *s, AVPacket *pkt) pkt->stream_index = 0; pkt->pos = pos; - pkt->pts = pts * 2048LL; - pkt->duration = 2048; + if (s->streams[0]->codecpar->codec_id == AV_CODEC_ID_ATRAC3AL) { + pkt->duration = 1024; + pkt->pts = pts * 1024LL; + } else { + pkt->duration = 2048; + pkt->pts = pts * 2048LL; + } return ret; } |