Fix for tools compile provided by qmc2 author (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2012-01-02 13:44:01 +00:00
parent 70a40085eb
commit f89aa84919
3 changed files with 6 additions and 6 deletions

View File

@ -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 */
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)
goto cleanup;
}
@ -1965,7 +1965,7 @@ static int do_extractav(int argc, char *argv[], int param)
/* write video */
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)
{
fprintf(stderr, "Error writing video for hunk %d to AVI file: %s\n", firstframe + framenum, avi_error_string(avierr));

View File

@ -825,9 +825,9 @@ int main(int argc, char *argv[])
/* loop over frames */
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);
frame++;
}
@ -836,7 +836,7 @@ int main(int argc, char *argv[])
isavi ? close_avi(file) : close_chd(file);
/* final output */
verify_video_final(&video, frame, bitmap);
verify_video_final(&video, frame, *bitmap);
verify_audio_final(&audio);
/* free memory */

View File

@ -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);
if (filerr != FILERR_NONE)
goto error;
pngerr = png_write_bitmap(file, NULL, finalbitmap, 0, NULL);
pngerr = png_write_bitmap(file, NULL, *finalbitmap, 0, NULL);
core_fclose(file);
if (pngerr != PNGERR_NONE)
goto error;