]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/gsmdec_data.h
wmapro: prevent division by zero when sample rate is unspecified
[ffmpeg] / libavcodec / gsmdec_data.h
index 32cd01ea7a5f8b668c7e1eb92641dc269061d272..2ff2322ab15929dc1cfded4d3f1db9eedb9863d4 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef GSMDEC_DATA
-#define GSMDEC_DATA
+#ifndef AVCODEC_GSMDEC_DATA
+#define AVCODEC_GSMDEC_DATA
 
 #include <stdint.h>
-
-// input and output sizes in byte
-#define GSM_BLOCK_SIZE    33
-#define GSM_MS_BLOCK_SIZE 65
-#define GSM_FRAME_SIZE   160
+#include "avcodec.h"
 
 typedef struct {
+    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
@@ -44,4 +41,4 @@ typedef struct {
 extern const uint16_t ff_gsm_long_term_gain_tab[4];
 extern const int16_t ff_gsm_dequant_tab[64][8];
 
-#endif
+#endif /* AVCODEC_GSMDEC_DATA */