Changeset 423

Show
Ignore:
Timestamp:
04/17/07 15:00:59 (1 year ago)
Author:
dconrad
Message:

Duplicate ac3 frequency table in our code, so that the build doesn't break when ffmpeg changes its internal structure.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bitstream_info.c

    r402 r423  
    1313#include <QuickTime/QuickTime.h> 
    1414 
    15 #include "ac3.h" 
    1615static const int nfchans_tbl[8] = { 2, 1, 2, 3, 3, 4, 4, 5 }; 
    1716static const int ac3_layout_no_lfe[8] = { 
     
    3433        kAudioChannelLayoutTag_DVD_6, 
    3534        kAudioChannelLayoutTag_ITU_3_2_1}; 
     35 
     36static const uint16_t ac3_freqs[3] = { 48000, 44100, 32000 }; 
    3637 
    3738/* From: http://svn.mplayerhq.hu/ac3/ (LGPL) 
     
    107108        /* This is a valid frame!!! */ 
    108109//      uint8_t bitrate = ac3_bitratetab[frmsizecod >> 1]; 
    109         int sample_rate = ff_ac3_freqs[fscod]; 
     110        int sample_rate = ac3_freqs[fscod]; 
    110111         
    111112        shift = 0;