Mercurial > libavcodec.hg
comparison vqavideo.c @ 12462:ffb3668ff7af libavcodec
Use new imgutils.h API names, fix deprecation warnings.
author | stefano |
---|---|
date | Tue, 07 Sep 2010 19:15:29 +0000 |
parents | 914f484bb476 |
children |
comparison
equal
deleted
inserted
replaced
12461:25174028da0a | 12462:ffb3668ff7af |
---|---|
146 /* load up the VQA parameters from the header */ | 146 /* load up the VQA parameters from the header */ |
147 vqa_header = (unsigned char *)s->avctx->extradata; | 147 vqa_header = (unsigned char *)s->avctx->extradata; |
148 s->vqa_version = vqa_header[0]; | 148 s->vqa_version = vqa_header[0]; |
149 s->width = AV_RL16(&vqa_header[6]); | 149 s->width = AV_RL16(&vqa_header[6]); |
150 s->height = AV_RL16(&vqa_header[8]); | 150 s->height = AV_RL16(&vqa_header[8]); |
151 if(av_check_image_size(s->width, s->height, 0, avctx)){ | 151 if(av_image_check_size(s->width, s->height, 0, avctx)){ |
152 s->width= s->height= 0; | 152 s->width= s->height= 0; |
153 return -1; | 153 return -1; |
154 } | 154 } |
155 s->vector_width = vqa_header[10]; | 155 s->vector_width = vqa_header[10]; |
156 s->vector_height = vqa_header[11]; | 156 s->vector_height = vqa_header[11]; |