fix pointer truncation to int in avpicture_layout()