[FFmpeg-cvslog] avcodec/hevcdec: Declare that nvdec supports 12bit decoding

Philip Langdale git at videolan.org
Sat Mar 3 01:39:18 EET 2018


ffmpeg | branch: master | Philip Langdale <philipl at overt.org> | Sun Feb 25 09:44:23 2018 -0800| [e990713ff9e39418318b2ca8dd8ab432e5e55c7c] | committer: Philip Langdale

avcodec/hevcdec: Declare that nvdec supports 12bit decoding

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

 libavcodec/hevcdec.c | 5 +++++
 libavcodec/version.h | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index fc4eb781dc..c8877626d2 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -408,6 +408,11 @@ static enum AVPixelFormat get_format(HEVCContext *s, const HEVCSPS *sps)
         *fmt++ = AV_PIX_FMT_CUDA;
 #endif
         break;
+    case AV_PIX_FMT_YUV420P12:
+#if CONFIG_HEVC_NVDEC_HWACCEL
+        *fmt++ = AV_PIX_FMT_CUDA;
+#endif
+        break;
     }
 
     *fmt++ = sps->pix_fmt;
diff --git a/libavcodec/version.h b/libavcodec/version.h
index ca18ce6e8b..1e84410d68 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -29,7 +29,7 @@
 
 #define LIBAVCODEC_VERSION_MAJOR  58
 #define LIBAVCODEC_VERSION_MINOR  13
-#define LIBAVCODEC_VERSION_MICRO 100
+#define LIBAVCODEC_VERSION_MICRO 101
 
 #define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
                                                LIBAVCODEC_VERSION_MINOR, \



More information about the ffmpeg-cvslog mailing list