diff options
author | Jun Zhao <mypopydev@gmail.com> | 2023-04-03 20:03:28 +0800 |
---|---|---|
committer | Jun Zhao <barryjzhao@tencent.com> | 2023-04-09 18:11:58 +0800 |
commit | aa8ff2240ce9ed2bc67d1e5fabfb77f38c823fb7 (patch) | |
tree | 814d4cadbf1db48d7fe92a6def00ba021a638a2b /libavcodec | |
parent | 82a14f360279ab252c2d17719ae72dd361f8277d (diff) | |
download | ffmpeg-aa8ff2240ce9ed2bc67d1e5fabfb77f38c823fb7.tar.gz |
lavc/videotoolboxenc: fix warnings
fix mixing declarations and code and function
declaration without a prototype warnings
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/videotoolboxenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index 56971471e4..c6f22723d6 100644 --- a/libavcodec/videotoolboxenc.c +++ b/libavcodec/videotoolboxenc.c @@ -120,7 +120,7 @@ do{ \ static pthread_once_t once_ctrl = PTHREAD_ONCE_INIT; -static void loadVTEncSymbols(){ +static void loadVTEncSymbols(void){ compat_keys.CMVideoFormatDescriptionGetHEVCParameterSetAtIndex = (getParameterSetAtIndex)dlsym( RTLD_DEFAULT, @@ -1650,8 +1650,8 @@ static int find_sei_end(AVCodecContext *avctx, { int nal_type; size_t sei_payload_size = 0; - *sei_end = NULL; uint8_t *nal_start = nal_data; + *sei_end = NULL; if (!nal_size) return 0; @@ -2041,7 +2041,7 @@ static int vtenc_cm_to_avpacket( 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; } |