Commit 87f840a6 authored by michael's avatar michael

Correct order of arguments for avcodec_check_dimensions().


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20590 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 75c4d160
...@@ -367,7 +367,7 @@ static int rv20_decode_picture_header(MpegEncContext *s) ...@@ -367,7 +367,7 @@ static int rv20_decode_picture_header(MpegEncContext *s)
} }
if(new_w != s->width || new_h != s->height){ 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); 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; return -1;
MPV_common_end(s); MPV_common_end(s);
avcodec_set_dimensions(s->avctx, new_w, new_h); avcodec_set_dimensions(s->avctx, new_w, new_h);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment