changeset 10559:93b8130bf480 libavcodec

Correct order of arguments for avcodec_check_dimensions().
author michael
date Mon, 23 Nov 2009 19:24:17 +0000
parents 16f0933d2c7f
children d126f819ea24
files rv10.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rv10.c	Mon Nov 23 19:22:19 2009 +0000
+++ b/rv10.c	Mon Nov 23 19:24:17 2009 +0000
@@ -367,7 +367,7 @@
         }
         if(new_w != s->width || new_h != s->height){
             av_log(s->avctx, AV_LOG_DEBUG, "attempting to change resolution to %dx%d\n", new_w, new_h);
-            if (avcodec_check_dimensions(s->avctx, new_h, new_w) < 0)
+            if (avcodec_check_dimensions(s->avctx, new_w, new_h) < 0)
                 return -1;
             MPV_common_end(s);
             avcodec_set_dimensions(s->avctx, new_w, new_h);