diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-04-07 23:18:34 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-04-07 23:18:34 +0000 |
commit | bce317498b31bf99a4f514a38c51e00725f73904 (patch) | |
tree | 79afbf7304f421c3c219d59221da965fd25df549 /libavcodec/bethsoftvideo.c | |
parent | b0094722b2f6ed1dd9a1b3b91ebcfd66e5c6f121 (diff) | |
download | ffmpeg-bce317498b31bf99a4f514a38c51e00725f73904.tar.gz |
remove redundant comments
Originally committed as revision 8667 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/bethsoftvideo.c')
-rw-r--r-- | libavcodec/bethsoftvideo.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/bethsoftvideo.c b/libavcodec/bethsoftvideo.c index fd8caac6fa..da63c382aa 100644 --- a/libavcodec/bethsoftvideo.c +++ b/libavcodec/bethsoftvideo.c @@ -42,7 +42,7 @@ static int bethsoftvid_decode_init(AVCodecContext *avctx) vid->frame.reference = 1; vid->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE; - avctx->pix_fmt = PIX_FMT_PAL8; // palette in vid->frame.data[1] + avctx->pix_fmt = PIX_FMT_PAL8; return 0; } @@ -51,7 +51,7 @@ static void set_palette(AVFrame * frame, uint8_t * palette_buffer) uint32_t * palette = (uint32_t *)frame->data[1]; int a; for(a = 0; a < 256; a++){ - palette[a] = AV_RB24(&palette_buffer[a * 3]) * 4; // multiply all colors by 4 + palette[a] = AV_RB24(&palette_buffer[a * 3]) * 4; } frame->palette_has_changed = 1; } @@ -69,7 +69,6 @@ static int bethsoftvid_decode_frame(AVCodecContext *avctx, uint8_t rle_num_bytes; int yoffset; - // reget buffer will copy old data, good for simple difference frames if (avctx->reget_buffer(avctx, &vid->frame)) { av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n"); return -1; |