libobs: Use size_t for obs_encoder_get_frame_size
This commit is contained in:
parent
8212cedf03
commit
7d64e9d598
@ -400,7 +400,7 @@ General Encoder Functions
|
||||
|
||||
---------------------
|
||||
|
||||
.. function:: uint32_t obs_encoder_get_frame_size(const obs_encoder_t *encoder)
|
||||
.. function:: size_t obs_encoder_get_frame_size(const obs_encoder_t *encoder)
|
||||
|
||||
:return: The frame size of the audio packet
|
||||
|
||||
|
@ -760,7 +760,7 @@ uint32_t obs_encoder_get_sample_rate(const obs_encoder_t *encoder)
|
||||
: audio_output_get_sample_rate(encoder->media);
|
||||
}
|
||||
|
||||
uint32_t obs_encoder_get_frame_size(const obs_encoder_t *encoder)
|
||||
size_t obs_encoder_get_frame_size(const obs_encoder_t *encoder)
|
||||
{
|
||||
if (!obs_encoder_valid(encoder, "obs_encoder_get_frame_size"))
|
||||
return 0;
|
||||
@ -772,7 +772,7 @@ uint32_t obs_encoder_get_frame_size(const obs_encoder_t *encoder)
|
||||
return 0;
|
||||
}
|
||||
|
||||
return encoder->framesize != 0 ? encoder->framesize : 0;
|
||||
return encoder->framesize;
|
||||
}
|
||||
|
||||
void obs_encoder_set_video(obs_encoder_t *encoder, video_t *video)
|
||||
|
@ -2207,7 +2207,7 @@ EXPORT uint32_t obs_encoder_get_height(const obs_encoder_t *encoder);
|
||||
EXPORT uint32_t obs_encoder_get_sample_rate(const obs_encoder_t *encoder);
|
||||
|
||||
/** For audio encoders, returns the frame size of the audio packet */
|
||||
EXPORT uint32_t obs_encoder_get_frame_size(const obs_encoder_t *encoder);
|
||||
EXPORT size_t obs_encoder_get_frame_size(const obs_encoder_t *encoder);
|
||||
|
||||
/**
|
||||
* Sets the preferred video format for a video encoder. If the encoder can use
|
||||
|
Loading…
x
Reference in New Issue
Block a user