Removed redundant chunk size field from auds header in Avi RIFF viewer.

This commit is contained in:
harry 2022-08-03 18:26:13 -04:00 committed by zeromus
parent 9d18523731
commit 1b32752800
1 changed files with 0 additions and 12 deletions

View File

@ -909,18 +909,6 @@ int AviRiffViewerDialog::processChunk( AviRiffTreeItem *item )
twi->setText( 0, tr("nBitsPerSample") );
twi->setText( 2, tr(stmp) );
item->addChild(twi);
// ffmpeg does not write out this element.
// Check chunk size to ensure it is there to avoid heap read overflow.
if ( dataSize >= 26 )
{
sprintf( stmp, "%u", data.readU16(24) );
twi = new QTreeWidgetItem();
twi->setText( 0, tr("cbSize") );
twi->setText( 2, tr(stmp) );
item->addChild(twi);
}
}
}
else if ( isRiffTag( item->getFourcc(), &riffIdx ) )