summaryrefslogtreecommitdiffstats
path: root/libavcodec/hevc_ps.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-05-25 20:46:11 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-05-25 20:46:11 +0200
commit085fe9822daa13cd97a690da6f56f23eba6efeb2 (patch)
tree6b3d72eb87f5f9024a27033f60f1f3f6ae7ac407 /libavcodec/hevc_ps.c
parent7b51b8020c0a3099260034f59f1404bca96e9cf7 (diff)
downloadffmpeg-streaming-085fe9822daa13cd97a690da6f56f23eba6efeb2.zip
ffmpeg-streaming-085fe9822daa13cd97a690da6f56f23eba6efeb2.tar.gz
lavc/hevc_ps: Use correct pix_fmt AV_PIX_FMT_GRAY9 for 9-bit 4:0:0 input.
Diffstat (limited to 'libavcodec/hevc_ps.c')
-rw-r--r--libavcodec/hevc_ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
index f877fa5..bca3abb 100644
--- a/libavcodec/hevc_ps.c
+++ b/libavcodec/hevc_ps.c
@@ -825,7 +825,7 @@ static int map_pixel_format(AVCodecContext *avctx, HEVCSPS *sps)
if (sps->chroma_format_idc == 3) sps->pix_fmt = AV_PIX_FMT_YUV444P;
break;
case 9:
- if (sps->chroma_format_idc == 0) sps->pix_fmt = AV_PIX_FMT_GRAY16;
+ if (sps->chroma_format_idc == 0) sps->pix_fmt = AV_PIX_FMT_GRAY9;
if (sps->chroma_format_idc == 1) sps->pix_fmt = AV_PIX_FMT_YUV420P9;
if (sps->chroma_format_idc == 2) sps->pix_fmt = AV_PIX_FMT_YUV422P9;
if (sps->chroma_format_idc == 3) sps->pix_fmt = AV_PIX_FMT_YUV444P9;
OpenPOWER on IntegriCloud