mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-24 01:59:17 +08:00
Remove the weird size stuff from OBS_DECLARE_MODULE
Instead of doing this, just use macros to handle this situation. Also, fix a minor bug in AAC encoder
This commit is contained in:
@@ -53,7 +53,7 @@ static void aac_warn(const char *func, const char *format, ...)
|
||||
|
||||
va_start(args, format);
|
||||
vsnprintf(msg, sizeof(msg), format, args);
|
||||
blog(LOG_WARNING, "[%s}: %s", func, msg);
|
||||
blog(LOG_WARNING, "[%s]: %s", func, msg);
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
@@ -193,6 +193,7 @@ static bool do_aac_encode(struct aac_encoder *enc,
|
||||
packet->pts = rescale_ts(avpacket.pts, enc->context, time_base);
|
||||
packet->dts = rescale_ts(avpacket.dts, enc->context, time_base);
|
||||
packet->data = bmemdup(avpacket.data, avpacket.size);
|
||||
packet->size = avpacket.size;
|
||||
packet->type = OBS_ENCODER_AUDIO;
|
||||
packet->timebase_num = 1;
|
||||
packet->timebase_den = (int32_t)enc->context->sample_rate;
|
||||
|
||||
Reference in New Issue
Block a user