Changeset 880
- Timestamp:
- 05/17/08 23:26:09 (5 months ago)
- Files:
-
- trunk/CommonUtils.c (modified) (1 diff)
- trunk/CommonUtils.h (modified) (1 diff)
- trunk/FFusionCodec.c (modified) (1 diff)
- trunk/MatroskaImportPrivate.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/CommonUtils.c
r806 r880 286 286 return 0; 287 287 } 288 289 int IsFrameDroppingEnabled() 290 { 291 static int enabled = -1; 292 293 if (enabled == -1) enabled = getenv("PerianNoFrameDropping") == NULL; 294 295 return enabled; 296 } trunk/CommonUtils.h
r585 r880 39 39 int isImageDescriptionExtensionPresent(ImageDescriptionHandle desc, long type); 40 40 41 int IsFrameDroppingEnabled(); 42 41 43 #ifdef __cplusplus 42 44 } trunk/FFusionCodec.c
r878 r880 878 878 return kCodecFrameTypeKey; 879 879 } 880 else if(skippable )880 else if(skippable && IsFrameDroppingEnabled()) 881 881 return kCodecFrameTypeDroppableDifference; 882 882 else if(fftype != 0) trunk/MatroskaImportPrivate.cpp
r877 r880 836 836 if (!simpleBlock.IsKeyframe()) 837 837 flags |= mediaSampleNotSync; 838 if (simpleBlock.IsDiscardable() )838 if (simpleBlock.IsDiscardable() && IsFrameDroppingEnabled()) 839 839 flags |= mediaSampleDroppable; 840 840 }
