]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/utils.c
avcodec/fic: Add skip_cursor AVOption
[ffmpeg] / libavcodec / utils.c
index 558afebc2f10d472c1df57d671c64c0e2883a835..a444a5ead8e368ebd42708564fafdec6bb8b3621 100644 (file)
@@ -3430,6 +3430,10 @@ int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes)
                 return (frame_bytes - 4) * 2 / ch;
             case AV_CODEC_ID_ADPCM_IMA_AMV:
                 return (frame_bytes - 8) * 2 / ch;
+            case AV_CODEC_ID_ADPCM_THP:
+                if (avctx->extradata)
+                    return frame_bytes * 14 / (8 * ch);
+                break;
             case AV_CODEC_ID_ADPCM_XA:
                 return (frame_bytes / 128) * 224 / ch;
             case AV_CODEC_ID_INTERPLAY_DPCM: