]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dolby_e.h
avcodec/rv10: Don't presume context to be initialized
[ffmpeg] / libavcodec / dolby_e.h
index 32471bce80dcb57f7133a7b679ee1dd954a531cb..9f0c06572901be16d4745ed7f9726183fed75514 100644 (file)
@@ -58,6 +58,8 @@ typedef struct DolbyEHeaderInfo {
      * @{
      */
     int         multi_prog_warned;
+
+    int         sample_rate;
     /** @} */
 } DolbyEHeaderInfo;
 
@@ -81,10 +83,6 @@ typedef struct DBEContext {
     uint8_t     buffer[1024 * 3 + AV_INPUT_BUFFER_PADDING_SIZE];
 } DBEContext;
 
-static const uint16_t sample_rate_tab[16] = {
-    0, 42965, 43008, 44800, 53706, 53760
-};
-
 /**
  * Use the provided key to transform the input into data (put into s->buffer)
  * suitable for further processing and initialize s->gb to read said data.