Revision 649c171a

View differences:

libavcodec/mpegvideo_xvmc.c
90 90
        return -1;
91 91
    }
92 92
    if (render->allocated_mv_blocks   < 1 ||
93
        render->allocated_data_blocks < mb_block_count) {
93
        render->allocated_data_blocks <  render->allocated_mv_blocks*mb_block_count ||
94
        render->start_mv_blocks_num   >= render->allocated_mv_blocks                ||
95
        render->next_free_data_block_num >
96
                        render->allocated_data_blocks -
97
                        mb_block_count*(render->allocated_mv_blocks-render->start_mv_blocks_num)) {
94 98
        av_log(avctx, AV_LOG_ERROR,
95 99
               "Rendering surface doesn't provide enough block structures to work with.\n");
96 100
        return -1;

Also available in: Unified diff