Revision 445f0a8b

View differences:

libavcodec/utils.c
200 200
}
201 201

  
202 202
int avcodec_check_dimensions(void *av_log_ctx, unsigned int w, unsigned int h){
203
    if((int)w>0 && (int)h>0 && (w+128)*(uint64_t)(h+128) < INT_MAX/4)
203
    if((int)w>0 && (int)h>0 && (w+128)*(uint64_t)(h+128) < INT_MAX/8)
204 204
        return 0;
205 205

  
206 206
    av_log(av_log_ctx, AV_LOG_ERROR, "picture size invalid (%ux%u)\n", w, h);

Also available in: Unified diff