diff options
author | wm4 <wm4@nowhere> | 2012-12-25 13:55:09 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-01-13 17:39:32 +0100 |
commit | f4a95058c70d829624146abd64b9b04d59dbc286 (patch) | |
tree | 0c86980f54988603ee5a6a55bed0830771b519c6 /video/mp_image_pool.c | |
parent | d77d9fb933e0e7dc34de02f3d0c13791ddd80114 (diff) | |
download | mpv-f4a95058c70d829624146abd64b9b04d59dbc286.tar.bz2 mpv-f4a95058c70d829624146abd64b9b04d59dbc286.tar.xz |
vo_corevideo: correct stride usage
The code assumed mp_image_alloc() would allocate an image large enough
for corevideo's stride, which doesn't have to be the case. If
corevideo's stride was larger than the stride of mp_image, the memcpy()
would write beyond the mp_image allocation.
This probably didn't actually happen, but fix the code to be more
correct anyway.
Diffstat (limited to 'video/mp_image_pool.c')
0 files changed, 0 insertions, 0 deletions