|
|
|
@@ -111,16 +111,7 @@ int ff_wmv2_encode_picture_header(MpegEncContext *s, int picture_number) |
|
|
|
put_bits(&s->pb, 2, SKIP_TYPE_NONE); |
|
|
|
|
|
|
|
ff_msmpeg4_code012(&s->pb, cbp_index = 0); |
|
|
|
if (s->qscale <= 10) { |
|
|
|
int map[3] = { 0, 2, 1 }; |
|
|
|
w->cbp_table_index = map[cbp_index]; |
|
|
|
} else if (s->qscale <= 20) { |
|
|
|
int map[3] = { 1, 0, 2 }; |
|
|
|
w->cbp_table_index = map[cbp_index]; |
|
|
|
} else { |
|
|
|
int map[3] = { 2, 1, 0 }; |
|
|
|
w->cbp_table_index = map[cbp_index]; |
|
|
|
} |
|
|
|
w->cbp_table_index = wmv2_get_cbp_table_index(s, cbp_index); |
|
|
|
|
|
|
|
if (w->mspel_bit) |
|
|
|
put_bits(&s->pb, 1, s->mspel); |
|
|
|
|