aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_convert.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/run_convert.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/run_convert.c b/test/run_convert.c
index bc95d959f..4f57400fd 100644
--- a/test/run_convert.c
+++ b/test/run_convert.c
@@ -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);