mirror of
https://github.com/holub/mame
synced 2025-06-06 12:53:46 +03:00
treesize in laserdisc CHD was uninitialized when input video had no audio channels [Oliver Stöneberg]
This commit is contained in:
parent
0137a8a49d
commit
93b7cf8173
@ -269,6 +269,11 @@ avhuff_error avhuff_encoder::encode_data(const UINT8 *source, UINT8 *dest, UINT3
|
||||
for (int chnum = 0; chnum < channels; chnum++)
|
||||
dstoffs += (dest[10 + 2 * chnum] << 8) + dest[11 + 2 * chnum];
|
||||
}
|
||||
else
|
||||
{
|
||||
dest[8] = 0;
|
||||
dest[9] = 0;
|
||||
}
|
||||
|
||||
// encode the video data
|
||||
if (width > 0 && height > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user