~ubuntu-branches/ubuntu/trusty/liblivemedia/trusty

« back to all changes in this revision

Viewing changes to liveMedia/H264VideoFileSink.cpp

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-05-07 11:38:26 UTC
  • mfrom: (1.4.13)
  • Revision ID: package-import@ubuntu.com-20120507113826-mlomc58q5wxli2mb
Tags: 2012.05.03-1
* Team upload.
* New upstream release.
* Refresh patches.
* Adjust dh_clean call to not modify upstream sources.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
  return NULL;
60
60
}
61
61
 
62
 
void H264VideoFileSink::afterGettingFrame1(unsigned frameSize, struct timeval presentationTime) {
 
62
void H264VideoFileSink::afterGettingFrame(unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime) {
63
63
  unsigned char const start_code[4] = {0x00, 0x00, 0x00, 0x01};
64
64
 
65
65
  if (!fHaveWrittenFirstFrame) {
78
78
  addData(start_code, 4, presentationTime);
79
79
 
80
80
  // Call the parent class to complete the normal file write with the input data:
81
 
  FileSink::afterGettingFrame1(frameSize, presentationTime);
 
81
  FileSink::afterGettingFrame(frameSize, numTruncatedBytes, presentationTime);
82
82
}