# HG changeset patch # User michael # Date 1058713260 0 # Node ID 498568fe7fd8dce8d0e91ccca8b991fe14490149 # Parent 091fc3a26c00653159ead172d952a524d37d60bb width -> frame / field type diff -r 091fc3a26c00 -r 498568fe7fd8 libmpcodecs/vd_ffmpeg.c --- a/libmpcodecs/vd_ffmpeg.c Sun Jul 20 14:50:31 2003 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Sun Jul 20 15:01:00 2003 +0000 @@ -334,16 +334,18 @@ #else uint8_t **src, int linesize, #endif - int y, int width, int height){ + int y, int type, int height){ sh_video_t * sh = s->opaque; int start=0, i; - int skip_stride= (s->width+15)>>4; + int width= s->width; + int skip_stride= (width+15)>>4; uint8_t *skip= &s->coded_frame->mbskip_table[(y>>4)*skip_stride]; int threshold= s->coded_frame->age; #if LIBAVCODEC_BUILD >= 4670 uint8_t *source[3]= {src->data[0] + offset[0], src->data[1] + offset[1], src->data[2] + offset[2]}; #else int stride[3]; + stride[0]=linesize; if(s->coded_frame->linesize[1]){ stride[1]= s->coded_frame->linesize[1];