[FFmpeg-devel] [PATCH]lavc/ffv1enc: Support pix_fmt GRAY10

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Nov 15 01:54:11 EET 2016


Hi!

Attached patch allows GRAY10 encoding, decoding works fine with current 
FFmpeg.

Please comment, Carl Eugen
-------------- next part --------------
From 5fb552828dc775045ad437065a429a54b4f1e353 Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos at ag.or.at>
Date: Tue, 15 Nov 2016 00:52:30 +0100
Subject: [PATCH] lavc/ffv1enc: Support pix_fmt GRAY10.

---
 libavcodec/ffv1enc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
index 68d311d..c56623b 100644
--- a/libavcodec/ffv1enc.c
+++ b/libavcodec/ffv1enc.c
@@ -573,6 +573,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
     case AV_PIX_FMT_YUVA420P9:
         if (!avctx->bits_per_raw_sample)
             s->bits_per_raw_sample = 9;
+    case AV_PIX_FMT_GRAY10:
     case AV_PIX_FMT_YUV444P10:
     case AV_PIX_FMT_YUV420P10:
     case AV_PIX_FMT_YUV422P10:
@@ -1298,6 +1299,7 @@ AVCodec ff_ffv1_encoder = {
         AV_PIX_FMT_GRAY16,    AV_PIX_FMT_GRAY8,     AV_PIX_FMT_GBRP9,     AV_PIX_FMT_GBRP10,
         AV_PIX_FMT_GBRP12,    AV_PIX_FMT_GBRP14,
         AV_PIX_FMT_YA8,
+        AV_PIX_FMT_GRAY10,
         AV_PIX_FMT_GBRP16, AV_PIX_FMT_RGB48,
         AV_PIX_FMT_NONE
 
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list