Changeset 332
- Timestamp:
- 02/06/07 14:56:08 (2 years ago)
- Files:
-
- trunk/Codecprintf.c (modified) (1 diff)
- trunk/Perian.xcodeproj/project.pbxproj (modified) (1 diff)
- trunk/SSADocument.m (modified) (2 diffs)
- trunk/SSARenderCodec.m (modified) (1 diff)
- trunk/SSATagParsing.m.rl (modified) (1 diff)
- trunk/SubImport.mm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Codecprintf.c
r194 r332 39 39 #endif 40 40 41 return ret; 41 42 } 42 43 trunk/Perian.xcodeproj/project.pbxproj
r331 r332 1809 1809 GCC_WARN_ABOUT_RETURN_TYPE = YES; 1810 1810 GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; 1811 GCC_WARN_UNINITIALIZED_AUTOS = YES;1812 1811 HEADER_SEARCH_PATHS = ( 1813 1812 ffmpeg/libavcodec, trunk/SSADocument.m
r330 r332 549 549 550 550 PtrToHand(str,&sampleHndl,sampleLen); 551 551 552 552 err=AddMediaSample(theMedia,sampleHndl,0,sampleLen, p->end_time - p->begin_time,(SampleDescriptionHandle)textDesc, 1, 0, &sampleTime); 553 if (err != noErr) goto bail;553 if (err != noErr) {err = GetMoviesError(); goto bail;} 554 554 555 555 ConvertTimeScale(&movieStartTime, movieTimeScale); 556 556 557 557 err = InsertMediaIntoTrack(theTrack, movieStartTime.value.lo, sampleTime, p->end_time - p->begin_time, fixed1); 558 if (err != noErr) { goto bail;}558 if (err != noErr) {err = GetMoviesError(); goto bail;} 559 559 560 560 DisposeHandle(sampleHndl); … … 573 573 574 574 bail: 575 575 576 576 [ssa release]; 577 577 [pool release]; trunk/SSARenderCodec.m
r331 r332 107 107 int i, lstart, lend, lstep, subcount, j; char direction; 108 108 float outline, shadow; 109 if (!(glob && glob->document)) {NSLog(@"Something wrong in SSA globals"); }109 if (!(glob && glob->document)) {NSLog(@"Something wrong in SSA globals"); return;} 110 110 SSADocument *ssa = glob->document; 111 111 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; trunk/SSATagParsing.m.rl
r331 r332 459 459 %%write eof; 460 460 461 if ( re->text[len-1] == '}') skipbegin = p; // make up for how exit_tag isn't called if the } is the last char in the line461 if (pb[len-1] == '}') skipbegin = p; // make up for how exit_tag isn't called if the } is the last char in the line 462 462 463 463 end_re; trunk/SubImport.mm
r331 r332 214 214 } 215 215 216 EndMediaEdits(theMedia); 217 216 218 sampleHndl = NULL; 217 219 … … 412 414 if (i > 0 && times[i-1] == times[i]) continue; 413 415 NSMutableString *accum = [NSMutableString string]; 414 unsigned start = times[i], end = times[i+1];416 unsigned start = times[i], end = start; 415 417 bool startedOutput = false, finishedOutput = false; 416 418 … … 421 423 for (int j=0; j < num; j++) { 422 424 if (isinrange(times[i], slines[j]->begin_time, slines[j]->end_time)) { 425 end = slines[j]->end_time; 423 426 [accum appendString:slines[j]->line]; 424 427 startedOutput = true;
