diff options
Diffstat (limited to 'test/run_convert.c')
-rw-r--r-- | test/run_convert.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/run_convert.c b/test/run_convert.c index ae76bc367..4f57400fd 100644 --- a/test/run_convert.c +++ b/test/run_convert.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2010 The Music Player Daemon Project + * Copyright (C) 2003-2011 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -76,13 +76,17 @@ int main(int argc, char **argv) return 1; } - if (!audio_format_parse(&out_audio_format, argv[2], - false, &error)) { + struct audio_format out_audio_format_mask; + if (!audio_format_parse(&out_audio_format_mask, argv[2], + true, &error)) { g_printerr("Failed to parse audio format: %s\n", error->message); return 1; } + out_audio_format = in_audio_format; + audio_format_mask_apply(&out_audio_format, &out_audio_format_mask); + const size_t in_frame_size = audio_format_frame_size(&in_audio_format); pcm_convert_init(&state); |