From b40e9ea0da435e5866c3d86907d299da7994bb53 Mon Sep 17 00:00:00 2001
From: Martin Vignali <martin.vignali@gmail.com>
Date: Sun, 21 Oct 2018 14:20:21 +0200
Subject: [PATCH 2/3] avcodec/prores_aw : cosmetic indent and add comment to
 describe frame header value

description are based on multimedia wiki documentation
---
 libavcodec/proresenc_anatoliy.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
index a38d8e09dc..ac167a4f7f 100644
--- a/libavcodec/proresenc_anatoliy.c
+++ b/libavcodec/proresenc_anatoliy.c
@@ -546,7 +546,7 @@ static int prores_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     bytestream_put_buffer(&buf, "icpf", 4);
 
     bytestream_put_be16(&buf, header_size);
-    bytestream_put_be16(&buf, 0);
+    bytestream_put_be16(&buf, 0); /* version */
     bytestream_put_buffer(&buf, "fmpg", 4);
     bytestream_put_be16(&buf, avctx->width);
     bytestream_put_be16(&buf, avctx->height);
@@ -555,7 +555,7 @@ static int prores_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     } else {
         *buf++ = 0x82; // 422, not interlaced
     }
-    *buf++ = 0;
+    *buf++ = 0; /* reserved */
     *buf++ = pict->color_primaries;
     *buf++ = pict->color_trc;
     *buf++ = pict->colorspace;
@@ -566,10 +566,10 @@ static int prores_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
             *buf++ = 0xA2;/* src b64a and 16b alpha */
         }
     } else {
-    *buf++ = 32;
+        *buf++ = 32;/* src v210 and no alpha */
     }
-    *buf++ = 0;
-    *buf++ = 3;
+    *buf++ = 0; /* reserved */
+    *buf++ = 3; /* luma and chroma matrix present */
 
     bytestream_put_buffer(&buf, QMAT_LUMA[avctx->profile],   64);
     bytestream_put_buffer(&buf, QMAT_CHROMA[avctx->profile], 64);
-- 
2.14.3 (Apple Git-98)

