[FFmpeg-cvslog] lavc/videotoolboxenc: make transfer_fnc initialized for unsupport function
Limin Wang
git at videolan.org
Sun Aug 11 17:53:23 EEST 2019
ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Thu Jul 18 06:59:35 2019 +0800| [1ee863a7b05aaf358c43c3a788e020cc1c752c59] | committer: 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: Limin Wang <lance.lmwang at gmail.com>
Signed-off-by: Rick Kern <kernrj at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1ee863a7b05aaf358c43c3a788e020cc1c752c59
---
libavcodec/videotoolboxenc.c | 1 +
1 file changed, 1 insertion(+)
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;
}
More information about the ffmpeg-cvslog
mailing list