mirror of https://github.com/mpv-player/mpv
Fix some unused variable warnings.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24162 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2d1a05ce75
commit
4ea8b17121
|
@ -449,13 +449,13 @@ static void draw_slice(struct AVCodecContext *s,
|
||||||
AVFrame *src, int offset[4],
|
AVFrame *src, int offset[4],
|
||||||
int y, int type, int height){
|
int y, int type, int height){
|
||||||
sh_video_t * sh = s->opaque;
|
sh_video_t * sh = s->opaque;
|
||||||
|
uint8_t *source[3]= {src->data[0] + offset[0], src->data[1] + offset[1], src->data[2] + offset[2]};
|
||||||
|
#if 0
|
||||||
int start=0, i;
|
int start=0, i;
|
||||||
int width= s->width;
|
int width= s->width;
|
||||||
int skip_stride= ((width<<lavc_param_lowres)+15)>>4;
|
int skip_stride= ((width<<lavc_param_lowres)+15)>>4;
|
||||||
uint8_t *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;
|
||||||
uint8_t *source[3]= {src->data[0] + offset[0], src->data[1] + offset[1], src->data[2] + offset[2]};
|
|
||||||
#if 0
|
|
||||||
if(s->pict_type!=B_TYPE){
|
if(s->pict_type!=B_TYPE){
|
||||||
for(i=0; i*16<width+16; i++){
|
for(i=0; i*16<width+16; i++){
|
||||||
if(i*16>=width || skip[i]>=threshold){
|
if(i*16>=width || skip[i]>=threshold){
|
||||||
|
@ -914,11 +914,11 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
|
||||||
static enum PixelFormat get_format(struct AVCodecContext * avctx,
|
static enum PixelFormat get_format(struct AVCodecContext * avctx,
|
||||||
const enum PixelFormat * fmt){
|
const enum PixelFormat * fmt){
|
||||||
sh_video_t * sh = avctx->opaque;
|
sh_video_t * sh = avctx->opaque;
|
||||||
vd_ffmpeg_ctx *ctx = sh->context;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
#ifdef HAVE_XVMC
|
#ifdef HAVE_XVMC
|
||||||
if(avctx->xvmc_acceleration){
|
if(avctx->xvmc_acceleration){
|
||||||
|
vd_ffmpeg_ctx *ctx = sh->context;
|
||||||
avctx->get_buffer= mc_get_buffer;
|
avctx->get_buffer= mc_get_buffer;
|
||||||
avctx->release_buffer= mc_release_buffer;
|
avctx->release_buffer= mc_release_buffer;
|
||||||
avctx->draw_horiz_band = mc_render_slice;
|
avctx->draw_horiz_band = mc_render_slice;
|
||||||
|
|
Loading…
Reference in New Issue