1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-31 15:59:34 +00:00

aspect: remove a small ffmpeg dependency

Not strictly needed, but probably saves us pain the next time
ffmpeg mess up their headers.
This commit is contained in:
wm4 2014-01-22 00:30:40 +01:00
parent 38d29c487c
commit 0931cff1e9

View File

@ -16,8 +16,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <libavutil/common.h>
/* Stuff for correct aspect scaling. */
#include "aspect.h"
#include "vo.h"
@ -62,8 +60,8 @@ static void aspect_calc_panscan(struct mp_log *log, struct mp_vo_opts *opts,
// Clamp [start, end) to range [0, size) with various fallbacks.
static void clamp_size(int size, int *start, int *end)
{
*start = FFMAX(0, *start);
*end = FFMIN(size, *end);
*start = MPMAX(0, *start);
*end = MPMIN(size, *end);
if (*start >= *end) {
*start = 0;
*end = 1;