--- decoder.c 2003/12/09 14:31:40 1.49.2.21 +++ decoder.c 2003/12/10 01:01:07 1.49.2.22 @@ -20,7 +20,7 @@ * along with this program ; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: decoder.c,v 1.49.2.21 2003/12/09 14:31:40 syskin Exp $ + * $Id: decoder.c,v 1.49.2.22 2003/12/10 01:01:07 Isibaar Exp $ * ****************************************************************************/ @@ -1316,6 +1316,16 @@ void decoder_output(DECODER * dec, IMAGE * img, MACROBLOCK * mbs, xvid_dec_frame_t * frame, xvid_dec_stats_t * stats, int coding_type) { + if (frame->general & (XVID_DEBLOCKY|XVID_DEBLOCKUV)) /* post process */ + { + /* note: image is stored to tmp */ + image_copy(&dec->tmp, img, dec->edged_width, dec->height); + image_deblock(&dec->tmp, dec->edged_width, + mbs, dec->mb_width, dec->mb_height, dec->mb_width, + frame->general); + img = &dec->tmp; + } + image_output(img, dec->width, dec->height, dec->edged_width, (uint8_t**)frame->output.plane, frame->output.stride, frame->output.csp, dec->interlacing);