[FFmpeg-devel] [PATCH] avcodec/hevc: set bit depth to bits_per_raw_samples
Sven Martinov
sven.martinov at ipp.mpg.de
Tue Jul 25 13:23:31 EEST 2023
Signed-off-by: Sven Martinov <sven.martinov at ipp.mpg.de>
---
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
More information about the ffmpeg-devel
mailing list