[libav-devel] [PATCH 3/3] libx265: Remove uneeded bit depth check

Derek Buitenhuis derek.buitenhuis at gmail.com
Wed Jun 11 22:23:11 CEST 2014


This is no longer needed since the version bump.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
---
 libavcodec/libx265.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c
index 5f27662..026f6ff 100644
--- a/libavcodec/libx265.c
+++ b/libavcodec/libx265.c
@@ -123,11 +123,6 @@ static av_cold int libx265_encode_init(AVCodecContext *avctx)
         }
     }
 
-    if (x265_max_bit_depth == 8)
-        ctx->params->internalBitDepth = 8;
-    else if (x265_max_bit_depth == 12)
-        ctx->params->internalBitDepth = 10;
-
     switch (avctx->pix_fmt) {
     case AV_PIX_FMT_YUV420P:
     case AV_PIX_FMT_YUV420P10:
-- 
2.0.0



More information about the libav-devel mailing list