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

Carl Eugen Hoyos git at videolan.org
Mon Nov 14 11:38:07 EET 2016


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Mon Nov 14 10:36:25 2016 +0100| [0674d1938ef33807ddcf20d8fa37690624d5453c] | committer: Carl Eugen Hoyos

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

Fixes the second sample from ticket #5544.

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

 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 ad3d5cd..ccc80fa 100644
--- a/libavcodec/hevc_ps.c
+++ b/libavcodec/hevc_ps.c
@@ -790,7 +790,7 @@ static int map_pixel_format(AVCodecContext *avctx, HEVCSPS *sps)
         if (sps->chroma_format_idc == 3) sps->pix_fmt = AV_PIX_FMT_YUV444P9;
         break;
     case 10:
-        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_GRAY10;
         if (sps->chroma_format_idc == 1) sps->pix_fmt = AV_PIX_FMT_YUV420P10;
         if (sps->chroma_format_idc == 2) sps->pix_fmt = AV_PIX_FMT_YUV422P10;
         if (sps->chroma_format_idc == 3) sps->pix_fmt = AV_PIX_FMT_YUV444P10;



More information about the ffmpeg-cvslog mailing list