19 lines
		
	
	
	
		
			743 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			743 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include <iostream>
 | 
						|
#include "box_h264.h"
 | 
						|
#include "box_stsd.h"
 | 
						|
#include <string>
 | 
						|
 | 
						|
int main() {
 | 
						|
  Box_h264 * Testing = new Box_h264();
 | 
						|
  Testing->SetCompressorName( "Test123" );
 | 
						|
  std::cout << "H264::Size: " << Testing->GetBox()->GetHeader().TotalSize << "\n";
 | 
						|
  Box_stsd * Testsample = new Box_stsd();
 | 
						|
  std::cout << "STSD::Before Content: " << Testsample->GetBox()->GetHeader().TotalSize << "\n";
 | 
						|
  Testsample->AddContent( Testing->GetBox() );
 | 
						|
  std::cout << "STSD::After 1 Content: " << Testsample->GetBox()->GetHeader().TotalSize << "\n";
 | 
						|
  Testsample->AddContent( Testing->GetBox(), 1 );
 | 
						|
  std::cout << "STSD::After 2 Content: " << Testsample->GetBox()->GetHeader().TotalSize << "\n";
 | 
						|
  delete Testsample;
 | 
						|
  delete Testing;
 | 
						|
  return 0;
 | 
						|
}
 |