summaryrefslogtreecommitdiff
path: root/libavcodec/flashsv.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-06-30 15:05:24 +0200
committerDiego Biurrun <diego@biurrun.de>2011-07-06 13:22:48 +0200
commitdc900310380ca77ad3398b93099cd211e3c53d65 (patch)
tree9ace39136a640c2998ef5d2c44b5b10cac32f188 /libavcodec/flashsv.c
parenta082e68030d6515a418c86db9a2ec529a7ed3ec8 (diff)
flashsv: improve some comments and fix some wrong ones
Diffstat (limited to 'libavcodec/flashsv.c')
-rw-r--r--libavcodec/flashsv.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c
index 8305378f94..578e713157 100644
--- a/libavcodec/flashsv.c
+++ b/libavcodec/flashsv.c
@@ -104,7 +104,7 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
s->block_height = 16 * (get_bits(&gb, 4) + 1);
s->image_height = get_bits(&gb, 12);
- /* calculate amount of blocks and the size of the border blocks */
+ /* calculate number of blocks and size of border (partial) blocks */
h_blocks = s->image_width / s->block_width;
h_part = s->image_width % s->block_width;
v_blocks = s->image_height / s->block_height;
@@ -121,7 +121,7 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
}
s->block_size = s->block_width * s->block_height;
- /* init the image size once */
+ /* initialize the image size once */
if (avctx->width == 0 && avctx->height == 0) {
avctx->width = s->image_width;
avctx->height = s->image_height;
@@ -152,14 +152,14 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
/* loop over all block columns */
for (j = 0; j < v_blocks + (v_part ? 1 : 0); j++) {
- int hp = j * s->block_height; // horiz position in frame
- int hs = (j < v_blocks) ? s->block_height : v_part; // size of block
+ int hp = j * s->block_height; // vertical position in frame
+ int hs = (j < v_blocks) ? s->block_height : v_part; // block size
/* loop over all block rows */
for (i = 0; i < h_blocks + (h_part ? 1 : 0); i++) {
- int wp = i * s->block_width; // vert position in frame
- int ws = (i < h_blocks) ? s->block_width : h_part; // size of block
+ int wp = i * s->block_width; // horizontal position in frame
+ int ws = (i < h_blocks) ? s->block_width : h_part; // block size
/* get the size of the compressed zlib chunk */
int size = get_bits(&gb, 16);