[FFmpeg-cvslog] r16878 - trunk/libavcodec/dv.c
romansh
subversion
Sat Jan 31 02:41:05 CET 2009
Author: romansh
Date: Sat Jan 31 02:41:04 2009
New Revision: 16878
Log:
Cosmetics: simplifying static initialization
Modified:
trunk/libavcodec/dv.c
Modified: trunk/libavcodec/dv.c
==============================================================================
--- trunk/libavcodec/dv.c Sat Jan 31 02:39:05 2009 (r16877)
+++ trunk/libavcodec/dv.c Sat Jan 31 02:41:04 2009 (r16878)
@@ -1008,7 +1008,7 @@ static int dv_encode_video_segment(AVCod
PutBitContext* pb;
EncBlockInfo* enc_blk;
int vs_bit_size = 0;
- int qnos[5];
+ int qnos[5] = {15, 15, 15, 15, 15}; /* No quantization */
int* qnosp = &qnos[0];
dif = &s->buf[work_chunk->buf_offset*80];
@@ -1018,7 +1018,6 @@ static int dv_encode_video_segment(AVCod
y_ptr = s->picture.data[0] + ((mb_y * s->picture.linesize[0] + mb_x) << 3);
c_offset = (((mb_y >> (s->sys->pix_fmt == PIX_FMT_YUV420P)) * s->picture.linesize[1] +
(mb_x >> ((s->sys->pix_fmt == PIX_FMT_YUV411P) ? 2 : 1))) << 3);
- qnos[mb_index] = 15; /* No quantization */
for (j = 0; j < 6; j++) {
if (s->sys->pix_fmt == PIX_FMT_YUV422P) { /* 4:2:2 */
if (j == 0 || j == 2) {
More information about the ffmpeg-cvslog
mailing list