summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-08-21 04:18:12 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-08-21 04:18:12 +0000
commitfd883f1e7201ee7cde585088bfaa457ea3ae2108 (patch)
treee5c778fb1830e2fe56f0eeff1dd29e970d73fe0f /src/tools
parente6a22123879d762301d76f7768613c587244f95e (diff)
Fixed bug when writing AVI files with more than one RIFF chunk.
Added missing chdman error messages when extracting to an AVI file.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/chdman.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/chdman.c b/src/tools/chdman.c
index 068c919c8d6..f5af8f22b40 100644
--- a/src/tools/chdman.c
+++ b/src/tools/chdman.c
@@ -1553,7 +1553,10 @@ static int do_extractav(int argc, char *argv[], int param)
{
avierr = avi_append_sound_samples(avi, chnum, avconfig.audio[chnum], numsamples, 0);
if (avierr != AVIERR_NONE)
+ {
+ fprintf(stderr, "Error writing samples for hunk %d to AVI file: %s\n", firstframe + framenum, avi_error_string(avierr));
goto cleanup;
+ }
}
/* write video */
@@ -1561,7 +1564,10 @@ static int do_extractav(int argc, char *argv[], int param)
{
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));
goto cleanup;
+ }
}
}
progress(TRUE, "Extraction complete! \n");