Lines 459-468
Link Here
|
459 |
// |
459 |
// |
460 |
memcpy (&_mainheader, inmainheader, sizeof (MainAVIHeader)); |
460 |
memcpy (&_mainheader, inmainheader, sizeof (MainAVIHeader)); |
461 |
_mainheader.dwFlags = AVIF_HASINDEX + AVIF_ISINTERLEAVED; |
461 |
_mainheader.dwFlags = AVIF_HASINDEX + AVIF_ISINTERLEAVED; |
462 |
if(!_mainheader.dwMicroSecPerFrame) |
462 |
if(_mainheader.dwMicroSecPerFrame<10000) // Less than 10 ms |
463 |
{ |
463 |
{ |
464 |
_mainheader.dwMicroSecPerFrame=40000; |
464 |
_mainheader.dwMicroSecPerFrame=40000; |
465 |
} |
465 |
} |
|
|
466 |
|
466 |
// update main header codec with video codev |
467 |
// update main header codec with video codev |
467 |
if (inaudiostream) |
468 |
if (inaudiostream) |
468 |
{ |
469 |
{ |
Lines 486-492
Link Here
|
486 |
_videostream.dwLength = nb_frame; |
487 |
_videostream.dwLength = nb_frame; |
487 |
_videostream.fccType=fourCC::get((uint8_t *)"vids"); |
488 |
_videostream.fccType=fourCC::get((uint8_t *)"vids"); |
488 |
memcpy(&_bih,bih,sizeof(_bih)); |
489 |
memcpy(&_bih,bih,sizeof(_bih)); |
489 |
|
490 |
|
|
|
491 |
// Recompute image size |
492 |
uint32_t is; |
493 |
is=_bih.biWidth*_bih.biHeight; |
494 |
is*=(_bih.biBitCount+7)/8; |
495 |
_bih.biSizeImage=is; |
496 |
|
497 |
|
498 |
|
490 |
// MOD Feb 2005 by GMV: initialize ODML data |
499 |
// MOD Feb 2005 by GMV: initialize ODML data |
491 |
// test for free data structures |
500 |
// test for free data structures |
492 |
if(odml_indexes!=NULL){ |
501 |
if(odml_indexes!=NULL){ |