Commit 1ee863a7 authored by Limin Wang's avatar Limin Wang Committed by Rick Kern

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: 's avatarLimin Wang <lance.lmwang@gmail.com>
Signed-off-by: 's avatarRick Kern <kernrj@gmail.com>
parent 391b67fc
...@@ -949,6 +949,7 @@ static int get_cv_transfer_function(AVCodecContext *avctx, ...@@ -949,6 +949,7 @@ static int get_cv_transfer_function(AVCodecContext *avctx,
break; break;
default: default:
*transfer_fnc = NULL;
av_log(avctx, AV_LOG_ERROR, "Transfer function %s is not supported.\n", av_color_transfer_name(trc)); av_log(avctx, AV_LOG_ERROR, "Transfer function %s is not supported.\n", av_color_transfer_name(trc));
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment