[mod_openh264, mod_av] add avcodec and openh264 debug

This commit is contained in:
wangxiaoli authored and Andrey Volk committed 2021-10-23 22:00:13 +03:00
1 parent e2a53bdcb8
commit 1cbb2e6fc3
2 files changed
+13

No files matched your search

+6
View File
@@ -1764,6 +1764,12 @@ static switch_status_t switch_h264_control(switch_codec_t *codec,
h264_codec_context_t *context = (h264_codec_context_t *)codec->private_info;
switch(cmd) {
case SCC_DEBUG:
{
int32_t level = *((uint32_t *) cmd_data);
mod_av_globals.debug = level;
}
break;
case SCC_VIDEO_GEN_KEYFRAME:
context->need_key_frame = 1;
break;