Changeset 157
- Timestamp:
- 10/13/06 19:04:45 (2 years ago)
- Files:
-
- trunk/MatroskaCodecIDs.cpp (modified) (1 diff)
- trunk/MatroskaCodecIDs.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/MatroskaCodecIDs.cpp
r156 r157 222 222 223 223 AddImageDescriptionExtension(imgDesc, imgDescExt, kSampleDescriptionExtensionVobSubIdx); 224 225 DisposeHandle((Handle) imgDescExt); 226 } 227 return noErr; 228 } 229 230 ComponentResult DescExt_Real(KaxTrackEntry *tr_entry, SampleDescriptionHandle desc, DescExtDirection dir) 231 { 232 if (!tr_entry || !desc) return paramErr; 233 ImageDescriptionHandle imgDesc = (ImageDescriptionHandle) desc; 234 235 if (dir == kToSampleDescription) { 236 KaxCodecPrivate *codecPrivate = FindChild<KaxCodecPrivate>(*tr_entry); 237 if (codecPrivate == NULL) 238 return invalidAtomErr; 239 240 Handle imgDescExt = NewHandle(codecPrivate->GetSize()); 241 memcpy(*imgDescExt, codecPrivate->GetBuffer(), codecPrivate->GetSize()); 242 243 AddImageDescriptionExtension(imgDesc, imgDescExt, kSampleDescriptionExtensionReal); 224 244 225 245 DisposeHandle((Handle) imgDescExt); trunk/MatroskaCodecIDs.h
r156 r157 66 66 kSampleDescriptionExtensionTheora = 'XdxT', 67 67 kSampleDescriptionExtensionVobSubIdx = '.IDX', 68 kSampleDescriptionExtensionReal = 'RVex', 68 69 }; 69 70 … … 142 143 ComponentResult DescExt_XiphFLAC(KaxTrackEntry *tr_entry, SampleDescriptionHandle desc, DescExtDirection dir); 143 144 ComponentResult DescExt_VobSub(KaxTrackEntry *tr_entry, SampleDescriptionHandle desc, DescExtDirection dir); 145 ComponentResult DescExt_Real(KaxTrackEntry *tr_entry, SampleDescriptionHandle desc, DescExtDirection dir); 144 146 145 147 struct CodecDescExtFunc { … … 153 155 { kAudioFormatXiphFLAC, DescExt_XiphFLAC }, 154 156 { kSubFormatVobSub, DescExt_VobSub }, 157 { kVideoFormatReal5, DescExt_Real }, 158 { kVideoFormatRealG2, DescExt_Real }, 159 { kVideoFormatReal8, DescExt_Real }, 160 { kVideoFormatReal9, DescExt_Real }, 155 161 }; 156 162
