summaryrefslogtreecommitdiffstats
path: root/libavcodec/hevc_ps.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-11-10 08:11:12 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-11-10 08:11:12 +0100
commitedb8af6e92470586dea9d1303bbfecb677df05a3 (patch)
treed2ee083379be3132d1dcc815cb78c89e49bd4d8a /libavcodec/hevc_ps.c
parent863ebe6f83de6e884a4b1870231678c9259f3c90 (diff)
downloadffmpeg-streaming-edb8af6e92470586dea9d1303bbfecb677df05a3.zip
ffmpeg-streaming-edb8af6e92470586dea9d1303bbfecb677df05a3.tar.gz
lavc/hevc_ps: Use correct pix_fmt for 12bit 4:0:0.
Fixes part of ticket #5544.
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 d08ba34..5722316 100644
--- a/libavcodec/hevc_ps.c
+++ b/libavcodec/hevc_ps.c
@@ -796,7 +796,7 @@ static int map_pixel_format(AVCodecContext *avctx, HEVCSPS *sps)
if (sps->chroma_format_idc == 3) sps->pix_fmt = AV_PIX_FMT_YUV444P10;
break;
case 12:
- 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_GRAY12;
if (sps->chroma_format_idc == 1) sps->pix_fmt = AV_PIX_FMT_YUV420P12;
if (sps->chroma_format_idc == 2) sps->pix_fmt = AV_PIX_FMT_YUV422P12;
if (sps->chroma_format_idc == 3) sps->pix_fmt = AV_PIX_FMT_YUV444P12;
OpenPOWER on IntegriCloud