[FFmpeg-cvslog] lavc/hevc_ps: Use correct pix_fmt for 12bit 4:0:0.

Carl Eugen Hoyos git at videolan.org
Thu Nov 10 09:12:53 EET 2016


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Nov 10 08:11:12 2016 +0100| [edb8af6e92470586dea9d1303bbfecb677df05a3] | committer: Carl Eugen Hoyos

lavc/hevc_ps: Use correct pix_fmt for 12bit 4:0:0.

Fixes part of ticket #5544.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=edb8af6e92470586dea9d1303bbfecb677df05a3
---

 libavcodec/hevc_ps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list