mp4.c unused variables

This commit is contained in:
Ruslan Kuchumov 2014-07-03 22:14:11 +00:00
parent e1f9749c97
commit 732e129d07

View File

@ -257,6 +257,7 @@ int processmp4 (char *file)
if (avc_track_count && ccx_options.mp4vidtrack)
continue;
/* unsigned num_streams = gf_isom_get_sample_description_count (f,i+1); */
unsigned num_samples = gf_isom_get_sample_count (f,i+1);
u32 ProcessingStreamDescriptionIndex = 0; // Current track we are processing, 0 = we don't know yet
@ -281,6 +282,7 @@ int processmp4 (char *file)
if (sample==NULL)
continue;
// mprint ("Data length: %lu\n",sample->dataLength);
/* const LLONG timestamp = (LLONG )((sample->DTS + sample->CTS_Offset) * 1000) / timescale; */
current_pts=(LLONG )(sample->DTS + sample->CTS_Offset)*MPEG_CLOCK_FREQ/timescale ; // Convert frequency to official one
if (pts_set==0)
pts_set=1;