]> git.sesse.net Git - ffmpeg/commitdiff
lavc/hevc_ps: Use correct pix_fmt AV_PIX_FMT_GRAY9 for 9-bit 4:0:0 input.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Fri, 25 May 2018 18:46:11 +0000 (20:46 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Fri, 25 May 2018 18:46:11 +0000 (20:46 +0200)
libavcodec/hevc_ps.c
libavcodec/version.h

index f877fa572c8c0d989941e46c2180301f915f5ed1..bca3abb0211bde654664ec939afa9f7826369f78 100644 (file)
@@ -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;
index 2e45d39a56ac3b6d68fe41c4bf2c1cebad77065b..f65346a1ac53e8b7fbb1a8ccabb290b292b854bb 100644 (file)
@@ -29,7 +29,7 @@
 
 #define LIBAVCODEC_VERSION_MAJOR  58
 #define LIBAVCODEC_VERSION_MINOR  19
-#define LIBAVCODEC_VERSION_MICRO 103
+#define LIBAVCODEC_VERSION_MICRO 104
 
 #define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
                                                LIBAVCODEC_VERSION_MINOR, \