#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <mp4v2/mp4v2.h>
int main( int argc, char** argv )
{
if( argc != 2 ) {
printf( "usage: %s file.mp4\n", argv[0] );
return 1;
}
MP4FileHandle file =
MP4Modify( argv[1], MP4_DETAILS_ERROR, 0 );
printf( "MP4Modify failed\n" );
return 1;
}
printf( "list=%p\n", list );
if( list ) {
printf(
"list size=%u\n", list->
size );
uint32_t i;
for( i = 0; i < list->
size; i++ ) {
printf(
"item[%u] type=%s\n", i, item->
code );
printf(
" mean=%s\n", item->
mean );
printf(
" name=%s\n", item->
name );
int j;
printf(
" data[%u] typeCode=%u valueSize=%u\n", j, data->
typeCode, data->
valueSize );
}
}
}
{
const char* const hello = "hello one";
}
{
bogus->
mean = strdup(
"com.garden.Tomato" );
bogus->
name = strdup(
"weight" );
const char* const hello = "hello two";
}
return 0;
}