Revision bd0eddb7 libavcodec/mpegvideo_xvmc.c

View differences:

libavcodec/mpegvideo_xvmc.c
316 316
    }
317 317
    render->filled_mv_blocks_num++;
318 318

  
319

  
320
    if (render->filled_mv_blocks_num > render->allocated_mv_blocks)
321
        av_log(s->avctx, AV_LOG_ERROR,
322
               "Not enough space to store mv blocks allocated.\n");
323

  
324
    if (render->next_free_data_block_num > render->allocated_data_blocks)
325
        av_log(s->avctx, AV_LOG_ERROR,
326
               "Offset to next data block exceeds number of allocated data blocks.\n");
319
    assert(render->filled_mv_blocks_num     <= render->allocated_mv_blocks);
320
    assert(render->next_free_data_block_num <= render->allocated_data_blocks);
321
    /* The above conditions should not be able to fail as long as this function
322
     * is used and the following 'if ()' automatically calls a callback to free
323
     * blocks. */
327 324

  
328 325

  
329 326
    if (render->filled_mv_blocks_num == render->allocated_mv_blocks)

Also available in: Unified diff