Changeset 1212

Show
Ignore:
Timestamp:
11/26/09 10:05:51 (8 months ago)
Author:
gbooker
Message:

Resurrect the workaround hack for mp3 on some versions of Tiger. This is specific to only mp3, so it shouldn't cause issues elsewhere (hopefully).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ff_private.c

    r1197 r1212  
    2323#include "ff_private.h" 
    2424#include "avcodec.h" 
    25 #include "libavutil/internal.h" 
    26 #include "mpegaudio.h" 
    2725#include "Codecprintf.h" 
    2826#include "CommonUtils.h" 
     
    261259        if (!asbd.mFramesPerPacket) 
    262260                asbd.mFramesPerPacket = codec->frame_size; 
     261        if (!asbd.mFramesPerPacket && !asbd.mBytesPerPacket && asbd.mFormatID == kAudioFormatMPEGLayer3) //MP3 Decode is broken on some versions of Tiger and the AppleTV 
     262                asbd.mFramesPerPacket = 1; 
    263263        asbd.mBitsPerChannel = codec->bits_per_coded_sample; 
    264264