diff options
-rw-r--r-- | common/encode_lavc.c | 16 | ||||
-rw-r--r-- | common/encode_lavc.h | 4 |
2 files changed, 0 insertions, 20 deletions
diff --git a/common/encode_lavc.c b/common/encode_lavc.c index bb7b6464e4..bed4a3b980 100644 --- a/common/encode_lavc.c +++ b/common/encode_lavc.c @@ -1211,20 +1211,4 @@ bool encode_lavc_set_csp_levels(struct encode_lavc_context *ctx, return true; } -enum mp_csp encode_lavc_get_csp(struct encode_lavc_context *ctx, - AVCodecContext *codec) -{ - CHECK_FAIL(ctx, 0); - - return avcol_spc_to_mp_csp(codec->colorspace); -} - -enum mp_csp_levels encode_lavc_get_csp_levels(struct encode_lavc_context *ctx, - AVCodecContext *codec) -{ - CHECK_FAIL(ctx, 0); - - return avcol_range_to_mp_csp_levels(codec->color_range); -} - // vim: ts=4 sw=4 et diff --git a/common/encode_lavc.h b/common/encode_lavc.h index b18238128b..8955f07ae3 100644 --- a/common/encode_lavc.h +++ b/common/encode_lavc.h @@ -117,9 +117,5 @@ bool encode_lavc_set_csp(struct encode_lavc_context *ctx, AVCodecContext *codec, enum mp_csp csp); bool encode_lavc_set_csp_levels(struct encode_lavc_context *ctx, AVCodecContext *codec, enum mp_csp_levels lev); -enum mp_csp encode_lavc_get_csp(struct encode_lavc_context *ctx, - AVCodecContext *codec); -enum mp_csp_levels encode_lavc_get_csp_levels(struct encode_lavc_context *ctx, - AVCodecContext *codec); #endif |