# HG changeset patch # User michaelni # Date 1063136781 0 # Node ID 62c16edd18c6849ad509b36f5e4b00a165ae7961 # Parent 357c19b0b27be9027c9416d39c7c8cdc373427d8 --disable-risky fix by (Luca Abeni ) diff -r 357c19b0b27b -r 62c16edd18c6 mpegvideo.c --- a/mpegvideo.c Tue Sep 09 19:03:14 2003 +0000 +++ b/mpegvideo.c Tue Sep 09 19:46:21 2003 +0000 @@ -3327,7 +3327,6 @@ #ifdef CONFIG_RISKY /* we need to initialize some time vars before we can encode b-frames */ // RAL: Condition added for MPEG1VIDEO - //FIXME figure out why mpeg1/2 need this !!! if (s->codec_id == CODEC_ID_MPEG1VIDEO || s->codec_id == CODEC_ID_MPEG2VIDEO || (s->h263_pred && !s->h263_msmpeg4)) ff_set_mpeg4_time(s, s->picture_number); #endif @@ -3746,9 +3745,11 @@ s->tex_pb= backup_s.tex_pb; } s->last_bits= get_bit_count(&s->pb); - + +#ifdef CONFIG_RISKY if (s->out_format == FMT_H263 && s->pict_type!=B_TYPE) ff_h263_update_motion_val(s); +#endif if(next_block==0){ s->dsp.put_pixels_tab[0][0](s->dest[0], s->me.scratchpad , s->linesize ,16); @@ -3912,9 +3913,11 @@ // RAL: Update last macrobloc type s->last_mv_dir = s->mv_dir; +#ifdef CONFIG_RISKY if (s->out_format == FMT_H263 && s->pict_type!=B_TYPE) ff_h263_update_motion_val(s); - +#endif + MPV_decode_mb(s, s->block); }