diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2017-08-26 11:59:34 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2017-08-26 11:59:34 +0200 |
commit | 1c56becb9b04219a36692479c32319765980521b (patch) | |
tree | c73b5d7628102d56b29b29680f580bbd507b55bf /libavcodec/utils.c | |
parent | 9d494c5e553fe3430df2fde0c456a723ae15f4ab (diff) |
lavc/utils: Calculate frame duration for little-endian G.726.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 1b8ad1d200..baf4992b19 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1757,7 +1757,7 @@ static int get_audio_frame_duration(enum AVCodecID id, int sr, int ch, int ba, if (bps > 0) { /* calc from frame_bytes and bits_per_coded_sample */ - if (id == AV_CODEC_ID_ADPCM_G726) + if (id == AV_CODEC_ID_ADPCM_G726 || id == AV_CODEC_ID_ADPCM_G726LE) return frame_bytes * 8 / bps; } |