From b3baff399ebfd28b3402905fce32066263d7632d Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 19 Apr 2018 19:55:13 +0200 Subject: vo_lavc: remove pointless uint32_t type for int values params->w/h are int, and the further use of these variables are int. The uint32_t is probably some refactoring artifact. --- video/out/vo_lavc.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'video/out') diff --git a/video/out/vo_lavc.c b/video/out/vo_lavc.c index 4b69231bfd..b32e405747 100644 --- a/video/out/vo_lavc.c +++ b/video/out/vo_lavc.c @@ -94,8 +94,8 @@ static int reconfig(struct vo *vo, struct mp_image_params *params) struct priv *vc = vo->priv; enum AVPixelFormat pix_fmt = imgfmt2pixfmt(params->imgfmt); AVRational aspect = {params->p_w, params->p_h}; - uint32_t width = params->w; - uint32_t height = params->h; + int width = params->w; + int height = params->h; if (!vc || vc->shutdown) return -1; @@ -103,11 +103,6 @@ static int reconfig(struct vo *vo, struct mp_image_params *params) pthread_mutex_lock(&vo->encode_lavc_ctx->lock); if (vc->stream) { - /* NOTE: - * in debug builds we get a "comparison between signed and unsigned" - * warning here. We choose to ignore that; just because ffmpeg currently - * uses a plain 'int' for these struct fields, it doesn't mean it always - * will */ if (width == vc->codec->width && height == vc->codec->height) { if (aspect.num != vc->codec->sample_aspect_ratio.num || -- cgit v1.2.3