Changeset 103
- Timestamp:
- 09/22/06 21:16:41 (2 years ago)
- Files:
-
- branches/perian-0.5/FFusionCodec.h (modified) (1 diff)
- branches/perian-0.5/ff_MovieImport.c (modified) (1 diff)
- branches/perian-0.5/ff_MovieImportVersion.h (modified) (1 diff)
- branches/perian-0.5/ff_private.c (modified) (2 diffs)
- branches/perian-0.5/ff_private.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/perian-0.5/FFusionCodec.h
r72 r103 29 29 //--------------------------------------------------------------------------- 30 30 31 #define kFFusionCodecVersion (0x000 20003)31 #define kFFusionCodecVersion (0x00030001) 32 32 33 33 #define kDivX1CodecInfoResID 256 branches/perian-0.5/ff_MovieImport.c
r92 r103 318 318 codec_get_bmp_id(BSWAP(fourcc)) == CODEC_ID_DVVIDEO) 319 319 *valid = 0; 320 321 url_fclose(&byteContext); 320 322 } 321 323 } branches/perian-0.5/ff_MovieImportVersion.h
r69 r103 24 24 #define __FF_MOVIEIMPORTVERSION__ 25 25 26 #define kFFAviComponentVersion 0x000 0000126 #define kFFAviComponentVersion 0x00010001 27 27 28 28 #define kChristophManufacturer 'Rafz' branches/perian-0.5/ff_private.c
r92 r103 528 528 short import_avi(AVFormatContext *ic, NCStream *map, int64_t aviheader_offset) 529 529 { 530 int j, k, l , nextFrame;530 int j, k, l; 531 531 NCStream *ncstr; 532 532 AVStream *stream; … … 593 593 /* FIXME: check if that's really the right thing to do here */ 594 594 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)) { 596 596 /* frame_size is set to zero for AAC and some MP3 tracks and it works this way */ 597 597 sampleRec.durationPerSample = ncstr->base.num; 598 598 sampleRec.numberOfSamples = 1; 599 599 } else { 600 /* this logic seems to be needed even iff ncstr->base.num == 1, but I'm not entirely sure */ 600 601 /* This seems to work. Although I have no idea why. 601 602 * Perhaps the stream's timebase is adjusted to branches/perian-0.5/ff_private.h
r92 r103 37 37 AVRational base; 38 38 int64_t lastpts; 39 int idxEntry;40 39 SampleReference64Record lastSample; 41 40 };
