ff_get_buffer(): allocate the frame for max(coded,display) dimensions