diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2019-07-18 06:59:35 +0800 |
---|---|---|
committer | Rick Kern <rick@8birdsvideo.com> | 2019-08-11 10:52:15 -0400 |
commit | 1ee863a7b05aaf358c43c3a788e020cc1c752c59 (patch) | |
tree | 9191c39e9a513aad0f23847abcd6d03cbdbb7903 /libavcodec/videotoolboxenc.c | |
parent | 391b67fcb58f95b5cc65b75070fd9a3dce4f8ac6 (diff) |
lavc/videotoolboxenc: make transfer_fnc initialized for unsupport function
The current function will report one error message, but the caller func
haven't check it, so change the default to process as AVCOL_TRC_UNSPECIFIED.
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Rick Kern <kernrj@gmail.com>
Diffstat (limited to 'libavcodec/videotoolboxenc.c')
-rw-r--r-- | libavcodec/videotoolboxenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index ece9d6ea8f..d76bb7f646 100644 --- a/libavcodec/videotoolboxenc.c +++ b/libavcodec/videotoolboxenc.c @@ -949,6 +949,7 @@ static int get_cv_transfer_function(AVCodecContext *avctx, break; default: + *transfer_fnc = NULL; av_log(avctx, AV_LOG_ERROR, "Transfer function %s is not supported.\n", av_color_transfer_name(trc)); return -1; } |