13
0

transcode debug should not print (null) array termination

This commit is contained in:
Robin Gareus 2022-07-04 18:03:12 +02:00
parent b5947dd0a8
commit 811f625623
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -452,7 +452,7 @@ TranscodeFfmpeg::extract_audio (std::string outfile, ARDOUR::samplecnt_t /*sampl
if (debug_enable) {
printf ("EXTRACT AUDIO:\n");
for (int i = 0; i < 14; ++i) {
for (int i = 0; i < 14 && argp[i]; ++i) {
printf ("%s ", argp[i]);
}
printf ("\n");
@ -524,7 +524,7 @@ TranscodeFfmpeg::transcode (std::string outfile, const int outw, const int outh,
if (debug_enable) {
printf ("TRANSCODE VIDEO:\n");
for (int i = 0; i < 15; ++i) {
for (int i = 0; i < 15 && argp[i]; ++i) {
printf ("%s ", argp[i]);
}
printf ("\n");