Changeset 1610

Show
Ignore:
Timestamp:
2005-11-07 03:39:54 (3 years ago)
Author:
conrad
Message:

report timebase as 0 if unspecified (not -1.0, which is silly)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libannodex/trunk/src/tools/anxrip.c

    r1304 r1610  
    178178  AnxList * tracks, * l; 
    179179  AnxTrack * s; 
     180  double timebase; 
    180181 
    181182  fprintf (outfile, "<stream timebase=\""); 
    182   fprintf_time_npt (anx_get_timebase (anx)); 
     183  timebase = anx_get_timebase (anx); 
     184  if (timebase == -1) timebase = 0.0; 
     185  fprintf_time_npt (timebase); 
    183186  fprintf (outfile, "\">\n"); /* XXX: and UTC */ 
    184187