Mercurial > libavcodec.hg
comparison msmpeg4.c @ 759:21b506d700cc libavcodec
fixing msmpeg4v3 encoding at bitrates <128k
author | michaelni |
---|---|
date | Sun, 20 Oct 2002 17:02:41 +0000 |
parents | fccad7166d5a |
children | 9f8c4905928b |
comparison
equal
deleted
inserted
replaced
758:cca620e89cf0 | 759:21b506d700cc |
---|---|
367 | 367 |
368 s->dc_table_index = 1; | 368 s->dc_table_index = 1; |
369 s->mv_table_index = 1; /* only if P frame */ | 369 s->mv_table_index = 1; /* only if P frame */ |
370 s->use_skip_mb_code = 1; /* only if P frame */ | 370 s->use_skip_mb_code = 1; /* only if P frame */ |
371 s->per_mb_rl_table = 0; | 371 s->per_mb_rl_table = 0; |
372 s->inter_intra_pred= (s->width*s->height < 320*240 && s->bit_rate<=II_BITRATE && s->pict_type==P_TYPE); | 372 if(s->msmpeg4_version==4) |
373 s->inter_intra_pred= (s->width*s->height < 320*240 && s->bit_rate<=II_BITRATE && s->pict_type==P_TYPE); | |
373 | 374 |
374 if (s->pict_type == I_TYPE) { | 375 if (s->pict_type == I_TYPE) { |
375 s->no_rounding = 1; | 376 s->no_rounding = 1; |
376 s->slice_height= s->mb_height/1; | 377 s->slice_height= s->mb_height/1; |
377 put_bits(&s->pb, 5, 0x16 + s->mb_height/s->slice_height); | 378 put_bits(&s->pb, 5, 0x16 + s->mb_height/s->slice_height); |