Skip to content

Commit a021ee9

Browse files
committed
fix typo
1 parent 1451a8d commit a021ee9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

toxav/codecs/h264/codec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ VCSession *vc_new_h264(Logger *log, ToxAV *av, uint32_t friend_number, toxav_vid
665665
LOGGER_API_WARNING(av->tox, "codec not found HW Accel H264 on encoder, trying software decoder ...");
666666
codec2 = avcodec_find_encoder_by_name("libx264");
667667
} else {
668-
LOGGER_API_ERROR(av->tox, "FOUND: *HW Accel* H264 encoder: %s", H264_WANT_ENCODER_NAME);
668+
LOGGER_API_ERROR(av->tox, "FOUND: *HW Accel* H264 encoder: %s", vc->encoder_codec_used_name);
669669
}
670670

671671
vc->h264_encoder2 = avcodec_alloc_context3(codec2);
@@ -1166,7 +1166,7 @@ int vc_reconfigure_encoder_h264(Logger *log, VCSession *vc, uint32_t bit_rate,
11661166
LOGGER_WARNING(log, "codec not found HW Accel H264 on encoder, trying software decoder ...");
11671167
codec2 = avcodec_find_encoder_by_name("libx264");
11681168
} else {
1169-
LOGGER_ERROR(log, "FOUND: *HW Accel* H264 encoder: %s", H264_WANT_ENCODER_NAME);
1169+
LOGGER_ERROR(log, "FOUND: *HW Accel* H264 encoder: %s", vc->encoder_codec_used_name);
11701170
}
11711171

11721172
vc->h264_encoder2 = avcodec_alloc_context3(codec2);

0 commit comments

Comments
 (0)