From 57bdd67646cfffa2921a8b28bb5f88cfe5c0989e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 9 Jan 2013 00:43:31 +0100 Subject: [PATCH] dirac: fix inverted check Regression since: ea6da80 Fixes Ticket2123 I cannot reproduce any regressions by flipping the wrong condition to how it should have been. Thanks-to: ubitux Signed-off-by: Michael Niedermayer --- libavcodec/dirac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dirac.c b/libavcodec/dirac.c index 2dd754f752..e132acc44a 100644 --- a/libavcodec/dirac.c +++ b/libavcodec/dirac.c @@ -237,7 +237,7 @@ static int parse_source_parameters(AVCodecContext *avctx, GetBitContext *gb, avctx->pix_fmt = dirac_pix_fmt[!luma_offset][source->chroma_format]; avcodec_get_chroma_sub_sample(avctx->pix_fmt, &chroma_x_shift, &chroma_y_shift); - if (!(source->width % (1<height % (1<width % (1<height % (1<