Show
Ignore:
Timestamp:
05/29/08 00:35:25 (6 months ago)
Author:
gbooker
Message:

If one has properly framed data, setting mFramesPerPacket breaks AC3 passthrough on the AppleTV (that is, the proper passthrough instead of the hack). The rest is warning fixes

Files:

Legend:

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

    r871 r905  
    1818 
    1919#include "avcodec.h" 
    20  
    21 #ifdef __BIG_ENDIAN__ 
    22 #define WORDS_BIGENDIAN 
    23 #endif 
    2420 
    2521#include "bswap.h" 
     
    123119        uint8_t half = ac3_halfrate[bsid]; 
    124120        int sample_rate = ac3_freqs[fscod] >> half; 
    125         int framesize
     121        int framesize = 0
    126122        switch (fscod) { 
    127123                case 0: 
     
    149145        else 
    150146                asbd->mFormatID = kAudioFormatAC3MS; 
    151         asbd->mFramesPerPacket = 1; 
    152147        asbd->mChannelsPerFrame = nfchans_tbl[acmod] + lfe; 
    153148