From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 9232347021 for ; Tue, 25 Jul 2023 10:23:41 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6F4A168C8D5; Tue, 25 Jul 2023 13:23:38 +0300 (EEST) Received: from xmailer.gwdg.de (xmailer.gwdg.de [134.76.10.29]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A6E1968C7D3 for ; Tue, 25 Jul 2023 13:23:32 +0300 (EEST) Received: from excmbx-25.um.gwdg.de ([134.76.9.235] helo=email.gwdg.de) by mailer.gwdg.de with esmtp (GWDG Mailer) (envelope-from ) id 1qOFCV-00010z-Cl for ffmpeg-devel@ffmpeg.org; Tue, 25 Jul 2023 12:23:32 +0200 Received: from MBX19-SUB-07.um.gwdg.de (10.108.142.72) by excmbx-25.um.gwdg.de (134.76.9.235) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.27; Tue, 25 Jul 2023 12:23:32 +0200 Received: from [192.168.0.21] (10.250.9.199) by MBX19-SUB-07.um.gwdg.de (10.108.142.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.2.1118.30; Tue, 25 Jul 2023 12:23:31 +0200 Message-ID: <04f01b96-5142-edeb-4902-efb8cada5f00@ipp.mpg.de> Date: Tue, 25 Jul 2023 12:23:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 From: Sven Martinov To: Content-Language: de-DE X-Originating-IP: [10.250.9.199] X-ClientProxiedBy: excmbx-14.um.gwdg.de (134.76.9.225) To MBX19-SUB-07.um.gwdg.de (10.108.142.72) X-Virus-Scanned: (clean) by clamav Subject: [FFmpeg-devel] [PATCH] avcodec/hevc: set bit depth to bits_per_raw_samples X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Signed-off-by: Sven Martinov --- libavcodec/hevcdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index fcf19b4..1ec382e 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -338,6 +338,7 @@ static void export_stream_params(HEVCContext *s, const HEVCSPS *sps) avctx->has_b_frames = sps->temporal_layer[sps->max_sub_layers - 1].num_reorder_pics; avctx->profile = sps->ptl.general_ptl.profile_idc; avctx->level = sps->ptl.general_ptl.level_idc; + avctx->bits_per_raw_sample = sps->bit_depth; ff_set_sar(avctx, sps->vui.common.sar); -- 2.7.4 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".