# HG changeset patch # User michael # Date 1069940280 0 # Node ID 4c0469b79010685bb90b92fde36171077bda29c5 # Parent 59f2fa833449fa7a52a2255e0fc9e0439d3a2032 dont read from b frames if draw_horiz_band==NULL diff -r 59f2fa833449 -r 4c0469b79010 mpegvideo.c --- a/mpegvideo.c Thu Nov 27 01:40:13 2003 +0000 +++ b/mpegvideo.c Thu Nov 27 13:38:00 2003 +0000 @@ -2571,6 +2571,7 @@ qpel_mc_func (*op_qpix)[16]; const int linesize= s->current_picture.linesize[0]; //not s->linesize as this woulnd be wrong for field pics const int uvlinesize= s->current_picture.linesize[1]; + const int readable= s->pict_type != B_TYPE || s->encoding || s->avctx->draw_horiz_band; /* avoid copy if macroblock skipped in last frame too */ /* skip only during decoding as we might trash the buffers during encoding a bit */ @@ -2606,11 +2607,15 @@ dct_linesize = linesize; dct_offset = linesize * 8; } - - dest_y= s->dest[0]; - dest_cb= s->dest[1]; - dest_cr= s->dest[2]; - + if(readable){ + dest_y= s->dest[0]; + dest_cb= s->dest[1]; + dest_cr= s->dest[2]; + }else{ + dest_y = s->edge_emu_buffer+32; //FIXME cleanup scratchpad pointers + dest_cb= s->edge_emu_buffer+48; + dest_cr= s->edge_emu_buffer+56; + } if (!s->mb_intra) { /* motion handling */ /* decoding or more than one mb_type (MC was allready done otherwise) */ @@ -2688,6 +2693,11 @@ } } } + if(!readable){ + s->dsp.put_pixels_tab[0][0](s->dest[0], dest_y , linesize,16); + s->dsp.put_pixels_tab[1][0](s->dest[1], dest_cb, uvlinesize, 8); + s->dsp.put_pixels_tab[1][0](s->dest[2], dest_cr, uvlinesize, 8); + } } }