Revision 1c02a973

View differences:

libavcodec/wmv2.c
587 587
static void wmv2_add_block(Wmv2Context *w, DCTELEM *block1, uint8_t *dst, int stride, int n){
588 588
    MpegEncContext * const s= &w->s;
589 589

  
590
  if (s->block_last_index[n] >= 0) {
590 591
    switch(w->abt_type_table[n]){
591 592
    case 0:
592
        if (s->block_last_index[n] >= 0) {
593
            s->dsp.idct_add (dst, stride, block1);
594
        }
593
        s->dsp.idct_add (dst, stride, block1);
595 594
        break;
596 595
    case 1:
597 596
        simple_idct84_add(dst           , stride, block1);
......
606 605
    default:
607 606
        av_log(s->avctx, AV_LOG_ERROR, "internal error in WMV2 abt\n");
608 607
    }
608
  }
609 609
}
610 610

  
611 611
void ff_wmv2_add_mb(MpegEncContext *s, DCTELEM block1[6][64], uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr){

Also available in: Unified diff