lavc/videotoolboxenc: fix warnings
fix mixing declarations and code and function declaration without a prototype warnings Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
This commit is contained in:
parent
82a14f3602
commit
aa8ff2240c
@ -120,7 +120,7 @@ do{ \
|
|||||||
|
|
||||||
static pthread_once_t once_ctrl = PTHREAD_ONCE_INIT;
|
static pthread_once_t once_ctrl = PTHREAD_ONCE_INIT;
|
||||||
|
|
||||||
static void loadVTEncSymbols(){
|
static void loadVTEncSymbols(void){
|
||||||
compat_keys.CMVideoFormatDescriptionGetHEVCParameterSetAtIndex =
|
compat_keys.CMVideoFormatDescriptionGetHEVCParameterSetAtIndex =
|
||||||
(getParameterSetAtIndex)dlsym(
|
(getParameterSetAtIndex)dlsym(
|
||||||
RTLD_DEFAULT,
|
RTLD_DEFAULT,
|
||||||
@ -1650,8 +1650,8 @@ static int find_sei_end(AVCodecContext *avctx,
|
|||||||
{
|
{
|
||||||
int nal_type;
|
int nal_type;
|
||||||
size_t sei_payload_size = 0;
|
size_t sei_payload_size = 0;
|
||||||
*sei_end = NULL;
|
|
||||||
uint8_t *nal_start = nal_data;
|
uint8_t *nal_start = nal_data;
|
||||||
|
*sei_end = NULL;
|
||||||
|
|
||||||
if (!nal_size)
|
if (!nal_size)
|
||||||
return 0;
|
return 0;
|
||||||
@ -2041,7 +2041,7 @@ static int vtenc_cm_to_avpacket(
|
|||||||
return AVERROR_EXTERNAL;
|
return AVERROR_EXTERNAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int status = get_params_size(avctx, vid_fmt, &header_size);
|
status = get_params_size(avctx, vid_fmt, &header_size);
|
||||||
if (status) return status;
|
if (status) return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user