avcodec/utils: Add ATRAC3+ to av_get_audio_frame_duration()
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 13 Nov 2014 01:48:40 +0000 (02:48 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 13 Nov 2014 01:48:40 +0000 (02:48 +0100)
Fixes Ticket3979

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/utils.c

index 5ee6893..bf2a5b9 100644 (file)
@@ -3312,6 +3312,7 @@ int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes)
     case AV_CODEC_ID_MP1:          return  384;
     case AV_CODEC_ID_ATRAC1:       return  512;
     case AV_CODEC_ID_ATRAC3:       return 1024;
+    case AV_CODEC_ID_ATRAC3P:      return 2048;
     case AV_CODEC_ID_MP2:
     case AV_CODEC_ID_MUSEPACK7:    return 1152;
     case AV_CODEC_ID_AC3:          return 1536;