[FFmpeg-devel] [PATCH 18/29] avcodec/hevc_ps: do not use YUVJ pixel format
Paul B Mahol
onemda at gmail.com
Sun Dec 10 15:14:25 EET 2017
Color range is already set.
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
libavcodec/hevc_ps.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
index a4f7ed60f7..19ec2d7ebf 100644
--- a/libavcodec/hevc_ps.c
+++ b/libavcodec/hevc_ps.c
@@ -578,8 +578,6 @@ static void decode_vui(GetBitContext *gb, AVCodecContext *avctx,
vui->video_format = get_bits(gb, 3);
vui->video_full_range_flag = get_bits1(gb);
vui->colour_description_present_flag = get_bits1(gb);
- if (vui->video_full_range_flag && sps->pix_fmt == AV_PIX_FMT_YUV420P)
- sps->pix_fmt = AV_PIX_FMT_YUVJ420P;
if (vui->colour_description_present_flag) {
vui->colour_primaries = get_bits(gb, 8);
vui->transfer_characteristic = get_bits(gb, 8);
--
2.11.0
More information about the ffmpeg-devel
mailing list