[vlc-commits] avcodec: map more transfer functions to VLC equivalents

Steve Lhomme git at videolan.org
Thu Jan 19 12:30:11 CET 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Thu Jan  5 09:48:45 2017 +0100| [2ff77dc21877ced3eef7c7bb4c20489d392d2ef7] | committer: Jean-Baptiste Kempf

avcodec: map more transfer functions to VLC equivalents

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2ff77dc21877ced3eef7c7bb4c20489d392d2ef7
---

 modules/codec/avcodec/video.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 97a4016..9086c20 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -226,6 +226,17 @@ static int lavc_GetVideoFormat(decoder_t *dec, video_format_t *restrict fmt,
         case AVCOL_TRC_BT2020_12:
             fmt->transfer = TRANSFER_FUNC_BT2020;
             break;
+#if LIBAVUTIL_VERSION_CHECK( 55, 17, 0, 39, 100)
+        case AVCOL_TRC_SMPTE2084:
+            fmt->transfer = TRANSFER_FUNC_SMPTE_ST2084;
+            break;
+        case AVCOL_TRC_SMPTE240M:
+            fmt->transfer = TRANSFER_FUNC_SMPTE_240;
+            break;
+        case AVCOL_TRC_GAMMA28:
+            fmt->transfer = TRANSFER_FUNC_BT470_BG;
+            break;
+#endif
         default:
             break;
     }



More information about the vlc-commits mailing list