diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2016-11-10 08:11:12 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2016-11-10 08:11:12 +0100 |
commit | edb8af6e92470586dea9d1303bbfecb677df05a3 (patch) | |
tree | d2ee083379be3132d1dcc815cb78c89e49bd4d8a /libavcodec/hevc_ps.c | |
parent | 863ebe6f83de6e884a4b1870231678c9259f3c90 (diff) | |
download | ffmpeg-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c index d08ba346ec..5722316a4e 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; |