mirror of
https://github.com/holub/mame
synced 2025-05-14 18:08:13 +03:00
Fix for tools compile provided by qmc2 author (no whatsnew)
This commit is contained in:
parent
70a40085eb
commit
f89aa84919
@ -873,7 +873,7 @@ static avi_error read_avi_frame(avi_file *avi, UINT32 framenum, UINT32 first_sam
|
|||||||
/* read the video data when we hit a new frame */
|
/* read the video data when we hit a new frame */
|
||||||
if (framenum % interlace_factor == 0)
|
if (framenum % interlace_factor == 0)
|
||||||
{
|
{
|
||||||
avierr = avi_read_video_frame_yuy16(avi, framenum / interlace_factor, fullbitmap);
|
avierr = avi_read_video_frame_yuy16(avi, framenum / interlace_factor, *fullbitmap);
|
||||||
if (avierr != AVIERR_NONE)
|
if (avierr != AVIERR_NONE)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
@ -1965,7 +1965,7 @@ static int do_extractav(int argc, char *argv[], int param)
|
|||||||
/* write video */
|
/* write video */
|
||||||
if (!interlaced || (firstframe + framenum) % 2 == 1)
|
if (!interlaced || (firstframe + framenum) % 2 == 1)
|
||||||
{
|
{
|
||||||
avierr = avi_append_video_frame_yuy16(avi, fullbitmap);
|
avierr = avi_append_video_frame_yuy16(avi, *fullbitmap);
|
||||||
if (avierr != AVIERR_NONE)
|
if (avierr != AVIERR_NONE)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Error writing video for hunk %d to AVI file: %s\n", firstframe + framenum, avi_error_string(avierr));
|
fprintf(stderr, "Error writing video for hunk %d to AVI file: %s\n", firstframe + framenum, avi_error_string(avierr));
|
||||||
|
@ -825,9 +825,9 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
/* loop over frames */
|
/* loop over frames */
|
||||||
frame = 0;
|
frame = 0;
|
||||||
while (isavi ? read_avi(file, frame, bitmap, lsound, rsound, &samples) : read_chd(file, frame, bitmap, lsound, rsound, &samples))
|
while (isavi ? read_avi(file, frame, *bitmap, lsound, rsound, &samples) : read_chd(file, frame, *bitmap, lsound, rsound, &samples))
|
||||||
{
|
{
|
||||||
verify_video(&video, frame, bitmap);
|
verify_video(&video, frame, *bitmap);
|
||||||
verify_audio(&audio, lsound, rsound, samples);
|
verify_audio(&audio, lsound, rsound, samples);
|
||||||
frame++;
|
frame++;
|
||||||
}
|
}
|
||||||
@ -836,7 +836,7 @@ int main(int argc, char *argv[])
|
|||||||
isavi ? close_avi(file) : close_chd(file);
|
isavi ? close_avi(file) : close_chd(file);
|
||||||
|
|
||||||
/* final output */
|
/* final output */
|
||||||
verify_video_final(&video, frame, bitmap);
|
verify_video_final(&video, frame, *bitmap);
|
||||||
verify_audio_final(&audio);
|
verify_audio_final(&audio);
|
||||||
|
|
||||||
/* free memory */
|
/* free memory */
|
||||||
|
@ -1002,7 +1002,7 @@ static int generate_png_diff(const summary_file *curfile, const astring *destdir
|
|||||||
filerr = core_fopen(astring_c(dstfilename), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE, &file);
|
filerr = core_fopen(astring_c(dstfilename), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE, &file);
|
||||||
if (filerr != FILERR_NONE)
|
if (filerr != FILERR_NONE)
|
||||||
goto error;
|
goto error;
|
||||||
pngerr = png_write_bitmap(file, NULL, finalbitmap, 0, NULL);
|
pngerr = png_write_bitmap(file, NULL, *finalbitmap, 0, NULL);
|
||||||
core_fclose(file);
|
core_fclose(file);
|
||||||
if (pngerr != PNGERR_NONE)
|
if (pngerr != PNGERR_NONE)
|
||||||
goto error;
|
goto error;
|
||||||
|
Loading…
Reference in New Issue
Block a user