Revision c1e7b256 libavcodec/mpegvideo_xvmc.c

View differences:

libavcodec/mpegvideo_xvmc.c
87 87
               "Rendering surface doesn't provide enough block structures to work with.\n");
88 88
        return -1;
89 89
    }
90
    if (render->total_number_of_mv_blocks   < 1 ||
91
        render->total_number_of_data_blocks < mb_block_count) {
92
        av_log(avctx, AV_LOG_ERROR,
93
               "Rendering surface doesn't provide enough block structures to work with.\n");
94
        return -1;
95
    }
96 90

  
97 91
    render->picture_structure = s->picture_structure;
98 92
    render->flags             = s->first_field ? 0 : XVMC_SECOND_FIELD;

Also available in: Unified diff