summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2016-05-05 21:21:27 +0200
committerPaul B Mahol <onemda@gmail.com>2016-05-15 01:01:45 +0200
commit86e493a6ffac3b3705ea4b276060c380ee2f5e75 (patch)
tree3767d6ed52c724f21bea40180bdd34e5cb3f0bec /libavcodec/utils.c
parent365b0c13e461a5d92e9e689e8f09301fb3255b93 (diff)
avcodec: add Direct Stream Transfer (DST) decoder
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 8652b17ee7..e5a832b3b4 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -3490,6 +3490,8 @@ static int get_audio_frame_duration(enum AVCodecID id, int sr, int ch, int ba,
/* calc from sample rate */
if (id == AV_CODEC_ID_TTA)
return 256 * sr / 245;
+ else if (id == AV_CODEC_ID_DST)
+ return 588 * sr / 44100;
if (ch > 0) {
/* calc from sample rate and channels */