sws: move the early return for zero-sized slices higher up
authorAnton Khirnov <anton@khirnov.net>
Fri, 21 May 2021 10:06:52 +0000 (12:06 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sat, 3 Jul 2021 14:09:43 +0000 (16:09 +0200)
commite1889855983094ca74c494d29b33e482b1bba865
tree59f645e9d9137c853ce1d46b222331c356e16372
parenta91e6c927e526f6a24336379148ff0e399afa852
sws: move the early return for zero-sized slices higher up

Place it right after the input parameter validation. There is no point
in performing any setup if the sws_scale() call won't do anything.
libswscale/swscale.c