diff options
author | Roman Shaposhnik <roman@shaposhnik.org> | 2009-01-31 01:41:04 +0000 |
---|---|---|
committer | Roman Shaposhnik <roman@shaposhnik.org> | 2009-01-31 01:41:04 +0000 |
commit | b45ba151cf36d5bdaff4778b631280eeef232eb9 (patch) | |
tree | 60a22fd61c3114e1e4c8ebff3f1c8ad6cd8995cf | |
parent | 85eca52be4324c333d93e040488cd39f07a591b9 (diff) | |
download | ffmpeg-b45ba151cf36d5bdaff4778b631280eeef232eb9.tar.gz |
Cosmetics: simplifying static initialization
Originally committed as revision 16878 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/dv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 79ae648b0c..47f6afcf48 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -1008,7 +1008,7 @@ static int dv_encode_video_segment(AVCodecContext *avctx, DVwork_chunk *work_chu 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(AVCodecContext *avctx, DVwork_chunk *work_chu 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) { |