diff options
author | Peter Ross <pross@xvid.org> | 2016-05-05 21:21:27 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-05-15 01:01:45 +0200 |
commit | 86e493a6ffac3b3705ea4b276060c380ee2f5e75 (patch) | |
tree | 3767d6ed52c724f21bea40180bdd34e5cb3f0bec /libavcodec/utils.c | |
parent | 365b0c13e461a5d92e9e689e8f09301fb3255b93 (diff) | |
download | ffmpeg-streaming-86e493a6ffac3b3705ea4b276060c380ee2f5e75.zip ffmpeg-streaming-86e493a6ffac3b3705ea4b276060c380ee2f5e75.tar.gz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 8652b17..e5a832b 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 */ |