Re: [FFmpeg-devel] [PATCH] lavd/avfoundation: Fix skewed video output

2016-06-25 Thread Thilo Borgmann
Am 25.06.16 um 19:45 schrieb Carl Eugen Hoyos: > Rick Kern gmail.com> writes: > >> Fixes #5654. > > Can you reproduce and test? > I was also looking at CVPixelBufferGetBytesPerRow() but I was > wondering if FFmpeg maybe uses an incorrect width; does > CVPixelBufferGetWidth() return the expecte

Re: [FFmpeg-devel] [PATCH] lavd/avfoundation: Fix skewed video output

2016-06-25 Thread Carl Eugen Hoyos
Rick Kern gmail.com> writes: > Fixes #5654. Can you reproduce and test? I was also looking at CVPixelBufferGetBytesPerRow() but I was wondering if FFmpeg maybe uses an incorrect width; does CVPixelBufferGetWidth() return the expected value? > +int src_linesize[4]; > +memset(src_lines

[FFmpeg-devel] [PATCH] lavd/avfoundation: Fix skewed video output

2016-06-24 Thread Rick Kern
Fixes #5654. The linesize can be greater than the minimum required. This copies the frame taking linesize into account. Signed-off-by: Rick Kern --- libavdevice/avfoundation.m | 56 -- 1 file changed, 49 insertions(+), 7 deletions(-) diff --git a/liba