diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2023-01-09 20:50:07 +0800 |
---|---|---|
committer | Zhao Zhili <zhilizhao@tencent.com> | 2023-01-26 23:48:36 +0800 |
commit | 5146916a9ce2a946c3b9826ccb36c248656d26a6 (patch) | |
tree | cf8abb60f50d7c76b606b10da2da1f1c1643a1c9 | |
parent | d6bd980da658453e54af40387633f158e0b125af (diff) |
avcodec/videotoolbox: fix documents of AVVideotoolboxContext
Since those fields will be overridden by videotoolbox_start(), they
should never be set by user, it can trigger memory leaks otherwise.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
-rw-r--r-- | libavcodec/videotoolbox.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/videotoolbox.h b/libavcodec/videotoolbox.h index 3cd1d254ff..ba5eddbf46 100644 --- a/libavcodec/videotoolbox.h +++ b/libavcodec/videotoolbox.h @@ -57,7 +57,6 @@ typedef struct AVVideotoolboxContext { /** * Videotoolbox decompression session object. - * Created and freed the caller. */ VTDecompressionSessionRef session; @@ -79,13 +78,11 @@ typedef struct AVVideotoolboxContext { /** * CoreMedia Format Description that Videotoolbox will use to create the decompression session. - * Set by the caller. */ CMVideoFormatDescriptionRef cm_fmt_desc; /** * CoreMedia codec type that Videotoolbox will use to create the decompression session. - * Set by the caller. */ int cm_codec_type; } AVVideotoolboxContext; |