Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-09 03:43:31 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-01-09 04:08:39 +0400
commit57bdd67646cfffa2921a8b28bb5f88cfe5c0989e (patch)
treeb3a86dccc7e27f6059c6c3d67c54668291d28ef3 /libavcodec/dirac.c
parent119d70db5099f9513d954283245efd7f699ad321 (diff)
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 <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dirac.c')
-rw-r--r--libavcodec/dirac.c2
1 files changed, 1 insertions, 1 deletions
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<<chroma_x_shift)) || !(source->height % (1<<chroma_y_shift))) {
+ if ((source->width % (1<<chroma_x_shift)) || (source->height % (1<<chroma_y_shift))) {
av_log(avctx, AV_LOG_ERROR, "Dimensions must be a integer multiply of the chroma subsampling\n");
return AVERROR_INVALIDDATA;
}