mirror of
https://github.com/mpv-player/mpv
synced 2024-09-12 23:45:53 +02:00
10l to kabi (compile fix, uint8->uint8_t)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9401 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8c803919e6
commit
e682fa834a
@ -297,13 +297,13 @@ static void uninit(sh_video_t *sh){
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void draw_slice(struct AVCodecContext *s,
|
static void draw_slice(struct AVCodecContext *s,
|
||||||
UINT8 **src, int linesize,
|
uint8_t **src, int linesize,
|
||||||
int y, int width, int height){
|
int y, int width, int height){
|
||||||
sh_video_t * sh = s->opaque;
|
sh_video_t * sh = s->opaque;
|
||||||
int stride[3];
|
int stride[3];
|
||||||
int start=0, i;
|
int start=0, i;
|
||||||
int skip_stride= (s->width+15)>>4;
|
int skip_stride= (s->width+15)>>4;
|
||||||
UINT8 *skip= &s->coded_frame->mbskip_table[(y>>4)*skip_stride];
|
uint8_t *skip= &s->coded_frame->mbskip_table[(y>>4)*skip_stride];
|
||||||
int threshold= s->coded_frame->age;
|
int threshold= s->coded_frame->age;
|
||||||
|
|
||||||
stride[0]=linesize;
|
stride[0]=linesize;
|
||||||
@ -318,7 +318,7 @@ static void draw_slice(struct AVCodecContext *s,
|
|||||||
if(i*16>=width || skip[i]>=threshold){
|
if(i*16>=width || skip[i]>=threshold){
|
||||||
if(start==i) start++;
|
if(start==i) start++;
|
||||||
else{
|
else{
|
||||||
UINT8 *src2[3]= {src[0] + start*16,
|
uint8_t *src2[3]= {src[0] + start*16,
|
||||||
src[1] + start*8,
|
src[1] + start*8,
|
||||||
src[2] + start*8};
|
src[2] + start*8};
|
||||||
//printf("%2d-%2d x %d\n", start, i, y);
|
//printf("%2d-%2d x %d\n", start, i, y);
|
||||||
|
Loading…
Reference in New Issue
Block a user