Changeset 98

Show
Ignore:
Timestamp:
09/22/06 11:01:52 (2 years ago)
Author:
dconrad
Message:

Apparently it's possible to store MP3 audio in AVI in the way AC3 audio normally is, denoted by the time base numerator being equal to 1

Files:

Legend:

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

    r92 r98  
    593593                                /* FIXME: check if that's really the right thing to do here */ 
    594594                                if(ncstr->vbr) { 
    595                                         if(codec->frame_size == ncstr->base.num || codec->frame_size == 0) { 
     595                                        if(codec->frame_size == ncstr->base.num || (codec->frame_size == 0 && ncstr->base.num > 1)) { 
    596596                                                /* frame_size is set to zero for AAC and some MP3 tracks and it works this way */ 
    597597                                                sampleRec.durationPerSample = ncstr->base.num; 
    598598                                                sampleRec.numberOfSamples = 1; 
    599599                                        } else { 
     600                                                /* this logic seems to be needed even iff ncstr->base.num == 1, but I'm not entirely sure */ 
    600601                                                /* This seems to work. Although I have no idea why. 
    601602                                                * Perhaps the stream's timebase is adjusted to