Previous 15994 Revisions Next

r13823 Monday 2nd January, 2012 at 13:46:25 UTC by Miodrag Milanović
Fix for tools compile provided by qmc2 author (no whatsnew)
[src/tools]chdman.c ldverify.c regrep.c

src/tools/ldverify.c
r13822r13823
825825
826826   /* loop over frames */
827827   frame = 0;
828   while (isavi ? read_avi(file, frame, bitmap, lsound, rsound, &samples) : read_chd(file, frame, bitmap, lsound, rsound, &samples))
828   while (isavi ? read_avi(file, frame, *bitmap, lsound, rsound, &samples) : read_chd(file, frame, *bitmap, lsound, rsound, &samples))
829829   {
830      verify_video(&video, frame, bitmap);
830      verify_video(&video, frame, *bitmap);
831831      verify_audio(&audio, lsound, rsound, samples);
832832      frame++;
833833   }
r13822r13823
836836   isavi ? close_avi(file) : close_chd(file);
837837
838838   /* final output */
839   verify_video_final(&video, frame, bitmap);
839   verify_video_final(&video, frame, *bitmap);
840840   verify_audio_final(&audio);
841841
842842   /* free memory */
src/tools/regrep.c
r13822r13823
10021002   filerr = core_fopen(astring_c(dstfilename), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE, &file);
10031003   if (filerr != FILERR_NONE)
10041004      goto error;
1005   pngerr = png_write_bitmap(file, NULL, finalbitmap, 0, NULL);
1005   pngerr = png_write_bitmap(file, NULL, *finalbitmap, 0, NULL);
10061006   core_fclose(file);
10071007   if (pngerr != PNGERR_NONE)
10081008      goto error;
src/tools/chdman.c
r13822r13823
873873   /* read the video data when we hit a new frame */
874874   if (framenum % interlace_factor == 0)
875875   {
876      avierr = avi_read_video_frame_yuy16(avi, framenum / interlace_factor, fullbitmap);
876      avierr = avi_read_video_frame_yuy16(avi, framenum / interlace_factor, *fullbitmap);
877877      if (avierr != AVIERR_NONE)
878878         goto cleanup;
879879   }
r13822r13823
19651965      /* write video */
19661966      if (!interlaced || (firstframe + framenum) % 2 == 1)
19671967      {
1968         avierr = avi_append_video_frame_yuy16(avi, fullbitmap);
1968         avierr = avi_append_video_frame_yuy16(avi, *fullbitmap);
19691969         if (avierr != AVIERR_NONE)
19701970         {
19711971            fprintf(stderr, "Error writing video for hunk %d to AVI file: %s\n", firstframe + framenum, avi_error_string(avierr));

Previous 15994 Revisions Next


© 1998-2018 The MESS Team