media/libtheora/bug625773-r17780.patch

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/libtheora/bug625773-r17780.patch	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +diff --git a/media/libtheora/lib/decode.c b/media/libtheora/lib/decode.c
     1.5 +--- a/media/libtheora/lib/decode.c
     1.6 ++++ b/media/libtheora/lib/decode.c
     1.7 +@@ -2072,18 +2072,17 @@ static void oc_dec_init_dummy_frame(th_d
     1.8 +    sizeof(_dec->pp_frame_buf[0])*3);
     1.9 +   info=&_dec->state.info;
    1.10 +   yhstride=abs(_dec->state.ref_ystride[0]);
    1.11 +   yheight=info->frame_height+2*OC_UMV_PADDING;
    1.12 +   chstride=abs(_dec->state.ref_ystride[1]);
    1.13 +   cheight=yheight>>!(info->pixel_fmt&2);
    1.14 +   yplane_sz=yhstride*(size_t)yheight+16;
    1.15 +   cplane_sz=chstride*(size_t)cheight;
    1.16 +-  yoffset=_dec->state.ref_ystride[0]*(yheight-1)-
    1.17 +-   (OC_UMV_PADDING+OC_UMV_PADDING*(ptrdiff_t)yhstride);
    1.18 ++  yoffset=yhstride*(ptrdiff_t)(yheight-OC_UMV_PADDING-1)+OC_UMV_PADDING;
    1.19 +   memset(_dec->state.ref_frame_data[0]-yoffset,0x80,yplane_sz+2*cplane_sz);
    1.20 + }
    1.21 + 
    1.22 + int th_decode_packetin(th_dec_ctx *_dec,const ogg_packet *_op,
    1.23 +  ogg_int64_t *_granpos){
    1.24 +   int ret;
    1.25 +   if(_dec==NULL||_op==NULL)return TH_EFAULT;
    1.26 +   /*A completely empty packet indicates a dropped frame and is treated exactly

mercurial