Commit 777e1cab authored by Max Kellermann's avatar Max Kellermann

test/run_convert: allow the out format to be a mask

parent 396e97fc
...@@ -76,13 +76,17 @@ int main(int argc, char **argv) ...@@ -76,13 +76,17 @@ int main(int argc, char **argv)
return 1; return 1;
} }
if (!audio_format_parse(&out_audio_format, argv[2], struct audio_format out_audio_format_mask;
false, &error)) { if (!audio_format_parse(&out_audio_format_mask, argv[2],
true, &error)) {
g_printerr("Failed to parse audio format: %s\n", g_printerr("Failed to parse audio format: %s\n",
error->message); error->message);
return 1; 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); const size_t in_frame_size = audio_format_frame_size(&in_audio_format);
pcm_convert_init(&state); pcm_convert_init(&state);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment