]> git.sesse.net Git - ffmpeg/commitdiff
libx265: Remove unneeded bit depth check
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Wed, 11 Jun 2014 20:20:43 +0000 (21:20 +0100)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Thu, 12 Jun 2014 15:45:02 +0000 (16:45 +0100)
This is no longer needed since the version bump.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavcodec/libx265.c

index 5f2766207925c574519ee12b025d6eb636cb26a1..026f6ff05797b8292fd79fb8786dc659206c0ab2 100644 (file)
@@ -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: