[FFmpeg-cvslog] avcodec/hap: (trivial) clarify comment
Tom Butterworth
git at videolan.org
Thu Jul 23 20:58:57 CEST 2015
ffmpeg | branch: master | Tom Butterworth <bangnoise at gmail.com> | Thu Jul 23 14:44:23 2015 -0400| [26e8247c1c0b80052571562b84a91a76f92bddfa] | committer: Michael Niedermayer
avcodec/hap: (trivial) clarify comment
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=26e8247c1c0b80052571562b84a91a76f92bddfa
---
libavcodec/hapenc.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libavcodec/hapenc.c b/libavcodec/hapenc.c
index 174fba1..8261fe9 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;
}
More information about the ffmpeg-cvslog
mailing list