YUV 4:1:0 has 1 chroma sample for a 4x2 block so the vertical resolution
is 1/2 not 1/4.
---
 libavutil/pixdesc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c
index 122072e..f49f327 100644
--- a/libavutil/pixdesc.c
+++ b/libavutil/pixdesc.c
@@ -198,7 +198,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] 
= {
         .name = "yuv410p",
         .nb_components = 3,
         .log2_chroma_w = 2,
-        .log2_chroma_h = 2,
+        .log2_chroma_h = 1,
         .comp = {
             { 0, 0, 1, 0, 7 },        /* Y */
             { 1, 0, 1, 0, 7 },        /* U */
-- 
1.7.7.3

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to