Mercurial > libavcodec.hg
comparison rv10.c @ 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 | 2ae4eb19665a |
comparison
equal
deleted
inserted
replaced
10558:16f0933d2c7f | 10559:93b8130bf480 |
---|---|
365 new_w= s->width; //FIXME wrong we of course must save the original in the context | 365 new_w= s->width; //FIXME wrong we of course must save the original in the context |
366 new_h= s->height; | 366 new_h= s->height; |
367 } | 367 } |
368 if(new_w != s->width || new_h != s->height){ | 368 if(new_w != s->width || new_h != s->height){ |
369 av_log(s->avctx, AV_LOG_DEBUG, "attempting to change resolution to %dx%d\n", new_w, new_h); | 369 av_log(s->avctx, AV_LOG_DEBUG, "attempting to change resolution to %dx%d\n", new_w, new_h); |
370 if (avcodec_check_dimensions(s->avctx, new_h, new_w) < 0) | 370 if (avcodec_check_dimensions(s->avctx, new_w, new_h) < 0) |
371 return -1; | 371 return -1; |
372 MPV_common_end(s); | 372 MPV_common_end(s); |
373 avcodec_set_dimensions(s->avctx, new_w, new_h); | 373 avcodec_set_dimensions(s->avctx, new_w, new_h); |
374 s->width = new_w; | 374 s->width = new_w; |
375 s->height = new_h; | 375 s->height = new_h; |