hwcontext: allocate the destination frame for the pool size
authorAnton Khirnov <anton@khirnov.net>
Fri, 15 Apr 2016 08:44:02 +0000 (10:44 +0200)
committerAnton Khirnov <anton@khirnov.net>
Tue, 28 Jun 2016 06:31:28 +0000 (08:31 +0200)
commitfdfe01365d579189d9a55b3741dba2ac46eb1df8
tree4d93a5b8cb3cb3f5a7e927fdd8fa6fcc6a1576fe
parent5fcae3b3f93fd02b3d1e009b9d9b17410fca9498
hwcontext: allocate the destination frame for the pool size

The source frame may be cropped, so that its dimensions are smaller than
the pool dimensions. The transfer_data API requires the allocated size
of the destination frame to be the same as the pool size.
libavutil/hwcontext.c