Revision d819b41b

View differences:

libavcodec/mpeg12.c
2508 2508

  
2509 2509
#if CONFIG_MPEG_XVMC_DECODER
2510 2510
static av_cold int mpeg_mc_decode_init(AVCodecContext *avctx){
2511
    Mpeg1Context *s;
2512

  
2513 2511
    if( avctx->thread_count > 1)
2514 2512
        return -1;
2515 2513
    if( !(avctx->slice_flags & SLICE_FLAG_CODED_ORDER) )
......
2518 2516
        dprintf(avctx, "mpeg12.c: XvMC decoder will work better if SLICE_FLAG_ALLOW_FIELD is set\n");
2519 2517
    }
2520 2518
    mpeg_decode_init(avctx);
2521
    s = avctx->priv_data;
2522 2519

  
2523 2520
    avctx->pix_fmt = PIX_FMT_XVMC_MPEG2_IDCT;
2524 2521
    avctx->xvmc_acceleration = 2;//2 - the blocks are packed!

Also available in: Unified diff