michael@0: diff --git a/media/libtheora/lib/decode.c b/media/libtheora/lib/decode.c michael@0: --- a/media/libtheora/lib/decode.c michael@0: +++ b/media/libtheora/lib/decode.c michael@0: @@ -2072,18 +2072,17 @@ static void oc_dec_init_dummy_frame(th_d michael@0: sizeof(_dec->pp_frame_buf[0])*3); michael@0: info=&_dec->state.info; michael@0: yhstride=abs(_dec->state.ref_ystride[0]); michael@0: yheight=info->frame_height+2*OC_UMV_PADDING; michael@0: chstride=abs(_dec->state.ref_ystride[1]); michael@0: cheight=yheight>>!(info->pixel_fmt&2); michael@0: yplane_sz=yhstride*(size_t)yheight+16; michael@0: cplane_sz=chstride*(size_t)cheight; michael@0: - yoffset=_dec->state.ref_ystride[0]*(yheight-1)- michael@0: - (OC_UMV_PADDING+OC_UMV_PADDING*(ptrdiff_t)yhstride); michael@0: + yoffset=yhstride*(ptrdiff_t)(yheight-OC_UMV_PADDING-1)+OC_UMV_PADDING; michael@0: memset(_dec->state.ref_frame_data[0]-yoffset,0x80,yplane_sz+2*cplane_sz); michael@0: } michael@0: michael@0: int th_decode_packetin(th_dec_ctx *_dec,const ogg_packet *_op, michael@0: ogg_int64_t *_granpos){ michael@0: int ret; michael@0: if(_dec==NULL||_op==NULL)return TH_EFAULT; michael@0: /*A completely empty packet indicates a dropped frame and is treated exactly