aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/hapenc.c
diff options
context:
space:
mode:
authorTom Butterworth <bangnoise@gmail.com>2015-07-23 14:44:23 -0400
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-23 20:57:52 +0200
commit26e8247c1c0b80052571562b84a91a76f92bddfa (patch)
treee07057895731445376242ee468d440acf1920429 /libavcodec/hapenc.c
parente59315c4abce83c150100a92fdec27760c8878c8 (diff)
downloadffmpeg-26e8247c1c0b80052571562b84a91a76f92bddfa.tar.gz
avcodec/hap: (trivial) clarify comment
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/hapenc.c')
-rw-r--r--libavcodec/hapenc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/hapenc.c b/libavcodec/hapenc.c
index 174fba124e..8261fe9f98 100644
--- a/libavcodec/hapenc.c
+++ b/libavcodec/hapenc.c
@@ -133,8 +133,10 @@ static int hap_compress_frame(AVCodecContext *avctx, uint8_t *dst)
static int hap_decode_instructions_length(HapContext *ctx)
{
- /* = Second-Stage Compressor Table + Chunk Size Table + headers for both sections
- * = chunk_count + (4 * chunk_count) + 4 + 4 */
+ /* Second-Stage Compressor Table (one byte per entry)
+ * + Chunk Size Table (four bytes per entry)
+ * + headers for both sections (short versions)
+ * = chunk_count + (4 * chunk_count) + 4 + 4 */
return (5 * ctx->chunk_count) + 8;
}