Mercurial > libavcodec.hg
changeset 983:ca2a303ea039 libavcodec
fixed wmv2 slices
author | michaelni |
---|---|
date | Thu, 09 Jan 2003 11:37:08 +0000 |
parents | a1866d06df1e |
children | e162c09efbe7 |
files | h263dec.c msmpeg4.c wmv2.c |
diffstat | 3 files changed, 6 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/h263dec.c Thu Jan 09 01:43:31 2003 +0000 +++ b/h263dec.c Thu Jan 09 11:37:08 2003 +0000 @@ -580,7 +580,7 @@ break; } - if(s->msmpeg4_version!=4 && s->h263_pred) + if(s->msmpeg4_version<4 && s->h263_pred) ff_mpeg4_clean_buffers(s); decode_slice(s);
--- a/msmpeg4.c Thu Jan 09 01:43:31 2003 +0000 +++ b/msmpeg4.c Thu Jan 09 11:37:08 2003 +0000 @@ -502,7 +502,7 @@ static inline void handle_slices(MpegEncContext *s){ if (s->mb_x == 0) { if (s->slice_height && (s->mb_y % s->slice_height) == 0) { - if(s->msmpeg4_version != 4){ + if(s->msmpeg4_version < 4){ ff_mpeg4_clean_buffers(s); } s->first_slice_line = 1; @@ -691,7 +691,7 @@ b = dc_val[ - 1 - wrap]; c = dc_val[ - wrap]; - if(s->first_slice_line && (n&2)==0 && s->msmpeg4_version!=4){ + if(s->first_slice_line && (n&2)==0 && s->msmpeg4_version<4){ b=c=1024; }
--- a/wmv2.c Thu Jan 09 01:43:31 2003 +0000 +++ b/wmv2.c Thu Jan 09 11:37:08 2003 +0000 @@ -330,8 +330,9 @@ s->slice_height = s->mb_height / code; if(s->avctx->debug&FF_DEBUG_PICT_INFO){ - printf("fps:%d, br:%d, qpbit:%d, abt_flag:%d, j_type_bit:%d, tl_mv_flag:%d, mbrl_bit:%d, code:%d, flag3:%d\n", - fps, s->bit_rate, w->mspel_bit, w->abt_flag, w->j_type_bit, w->top_left_mv_flag, w->per_mb_rl_bit, code, w->flag3); + printf("fps:%d, br:%d, qpbit:%d, abt_flag:%d, j_type_bit:%d, tl_mv_flag:%d, mbrl_bit:%d, code:%d, flag3:%d, slices:%d\n", + fps, s->bit_rate, w->mspel_bit, w->abt_flag, w->j_type_bit, w->top_left_mv_flag, w->per_mb_rl_bit, code, w->flag3, + code); } return 0; } @@ -577,16 +578,7 @@ MpegEncContext * const s= &w->s; uint8_t temp[2][64]; int i; - - if(w->abt_type_table[n] && 0){ - int a,b; - a= block1[0]; - b= w->abt_block2[n][0]; - block1[0]= a+b; - w->abt_block2[n][0]= a-b; - } - switch(w->abt_type_table[n]){ case 0: if (s->block_last_index[n] >= 0) {