Changeset 103

Show
Ignore:
Timestamp:
09/22/06 21:16:41 (2 years ago)
Author:
dconrad
Message:

Merge [98] to [100] into 0.5

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/perian-0.5/FFusionCodec.h

    r72 r103  
    2929//--------------------------------------------------------------------------- 
    3030 
    31 #define kFFusionCodecVersion            (0x00020003
     31#define kFFusionCodecVersion            (0x00030001
    3232 
    3333#define kDivX1CodecInfoResID            256 
  • branches/perian-0.5/ff_MovieImport.c

    r92 r103  
    318318                                codec_get_bmp_id(BSWAP(fourcc)) == CODEC_ID_DVVIDEO) 
    319319                                *valid = 0; 
     320                         
     321                        url_fclose(&byteContext); 
    320322                } 
    321323        } 
  • branches/perian-0.5/ff_MovieImportVersion.h

    r69 r103  
    2424#define __FF_MOVIEIMPORTVERSION__ 
    2525 
    26 #define kFFAviComponentVersion 0x00000001 
     26#define kFFAviComponentVersion 0x00010001 
    2727 
    2828#define kChristophManufacturer 'Rafz' 
  • branches/perian-0.5/ff_private.c

    r92 r103  
    528528short import_avi(AVFormatContext *ic, NCStream *map, int64_t aviheader_offset) 
    529529{ 
    530         int j, k, l, nextFrame
     530        int j, k, l
    531531        NCStream *ncstr; 
    532532        AVStream *stream; 
     
    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 
  • branches/perian-0.5/ff_private.h

    r92 r103  
    3737        AVRational base; 
    3838        int64_t lastpts; 
    39         int idxEntry; 
    4039        SampleReference64Record lastSample; 
    4140};