mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
FS-7500 FS-7517 FS-7508 FS-7514: chrome working on most, bria working on some
This commit is contained in:
@@ -395,8 +395,9 @@ static switch_status_t switch_h264_encode(switch_codec_t *codec,
|
||||
return nalu_slice(context, encoded_data, encoded_data_len, flag);
|
||||
}
|
||||
|
||||
width = img->d_w;
|
||||
height = img->d_h;
|
||||
//d_w and d_h are corrupt
|
||||
width = img->w;
|
||||
height = img->h;
|
||||
|
||||
//switch_assert(width > 0 && (width % 2 == 0));
|
||||
//switch_assert(height > 0 && (height % 2 == 0));
|
||||
|
||||
@@ -108,9 +108,10 @@ static switch_status_t switch_vpx_init(switch_codec_t *codec, switch_codec_flag_
|
||||
return SWITCH_STATUS_FALSE;
|
||||
}
|
||||
|
||||
context->width = 352;
|
||||
context->height = 288;
|
||||
context->bitrate = 38400;
|
||||
// very big defaults till we know why scaling segs it
|
||||
context->width = 3840;
|
||||
context->height = 2160;
|
||||
context->bitrate = 3840000;
|
||||
|
||||
// settings
|
||||
config->g_profile = 1;
|
||||
@@ -329,8 +330,10 @@ static switch_status_t switch_vpx_encode(switch_codec_t *codec, switch_image_t *
|
||||
return consume_partition(context, encoded_data, encoded_data_len, flag);
|
||||
}
|
||||
|
||||
width = img->d_w;
|
||||
height = img->d_h;
|
||||
//d_w and d_h are messed up
|
||||
|
||||
width = img->w;
|
||||
height = img->h;
|
||||
|
||||
//switch_assert(width > 0 && (width % 4 == 0));
|
||||
//switch_assert(height > 0 && (height % 4 == 0));
|
||||
|
||||
Reference in New Issue
Block a user