lavc/videotoolbox: Fix cropping with HEVC and H264 videos
authorAkemi <der.richter@gmx.de>
Sat, 10 Nov 2018 15:09:05 +0000 (16:09 +0100)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Mon, 12 Nov 2018 11:32:17 +0000 (12:32 +0100)
commit233cd89056405c76f01cc6f5315aa566454132fa
treee0fee5513959f09d04d9ea14631fb40e25d7f652
parent991cd7915537601ce4b862b981e4ef5d517205dd
lavc/videotoolbox: Fix cropping with HEVC and H264 videos

videotoolbox returns an already cropped stream which led to double
cropping. this issue was introduced with the refactor of the cropping
mechanism in commit 07596e4 for h264 and 000fb61 for HEVC.

to fix this we set the cropping of the frame and the output frame to 0.

Tested-by: ponpon
Fixes ticket #7544.
libavcodec/videotoolbox.c