]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/gsmdec_data.h
libopencore-amr: Check the return value of amr_decode_fix_avctx
[ffmpeg] / libavcodec / gsmdec_data.h
index b78daa7335f0f7595561e2848ded32c3a084c0c7..61715c88586f59ea4416e81dc07e0a942d6ff586 100644 (file)
 #define AVCODEC_GSMDEC_DATA
 
 #include <stdint.h>
+#include "avcodec.h"
 
-// input and output sizes in byte
-#define GSM_BLOCK_SIZE    33
-#define GSM_MS_BLOCK_SIZE 65
-#define GSM_FRAME_SIZE   160
-
-typedef struct {
+typedef struct GSMContext {
+    AVFrame frame;
     // Contains first 120 elements from the previous frame
     // (used by long_term_synth according to the "lag"),
     // then in the following 160 elements the current