Mercurial > libavcodec.hg
comparison mpeg12.c @ 9076:4557a8635262 libavcodec
Remove unused variable in mpeg_mc_decode_init
author | reimar |
---|---|
date | Sun, 01 Mar 2009 09:14:20 +0000 |
parents | 390f5a9721d2 |
children | 0d39a5203bf0 |
comparison
equal
deleted
inserted
replaced
9075:6366106bd493 | 9076:4557a8635262 |
---|---|
2506 .long_name= NULL_IF_CONFIG_SMALL("MPEG-1 video"), | 2506 .long_name= NULL_IF_CONFIG_SMALL("MPEG-1 video"), |
2507 }; | 2507 }; |
2508 | 2508 |
2509 #if CONFIG_MPEG_XVMC_DECODER | 2509 #if CONFIG_MPEG_XVMC_DECODER |
2510 static av_cold int mpeg_mc_decode_init(AVCodecContext *avctx){ | 2510 static av_cold int mpeg_mc_decode_init(AVCodecContext *avctx){ |
2511 Mpeg1Context *s; | |
2512 | |
2513 if( avctx->thread_count > 1) | 2511 if( avctx->thread_count > 1) |
2514 return -1; | 2512 return -1; |
2515 if( !(avctx->slice_flags & SLICE_FLAG_CODED_ORDER) ) | 2513 if( !(avctx->slice_flags & SLICE_FLAG_CODED_ORDER) ) |
2516 return -1; | 2514 return -1; |
2517 if( !(avctx->slice_flags & SLICE_FLAG_ALLOW_FIELD) ){ | 2515 if( !(avctx->slice_flags & SLICE_FLAG_ALLOW_FIELD) ){ |
2518 dprintf(avctx, "mpeg12.c: XvMC decoder will work better if SLICE_FLAG_ALLOW_FIELD is set\n"); | 2516 dprintf(avctx, "mpeg12.c: XvMC decoder will work better if SLICE_FLAG_ALLOW_FIELD is set\n"); |
2519 } | 2517 } |
2520 mpeg_decode_init(avctx); | 2518 mpeg_decode_init(avctx); |
2521 s = avctx->priv_data; | |
2522 | 2519 |
2523 avctx->pix_fmt = PIX_FMT_XVMC_MPEG2_IDCT; | 2520 avctx->pix_fmt = PIX_FMT_XVMC_MPEG2_IDCT; |
2524 avctx->xvmc_acceleration = 2;//2 - the blocks are packed! | 2521 avctx->xvmc_acceleration = 2;//2 - the blocks are packed! |
2525 | 2522 |
2526 return 0; | 2523 return 0; |