Mercurial > libavcodec.hg
comparison rv10.c @ 12372:914f484bb476 libavcodec
Remove use of the deprecated function avcodec_check_dimensions(), use
av_check_image_size() instead.
author | stefano |
---|---|
date | Fri, 06 Aug 2010 09:37:04 +0000 |
parents | c35d7bc64882 |
children | ffb3668ff7af |
comparison
equal
deleted
inserted
replaced
12371:5dffb531b1cc | 12372:914f484bb476 |
---|---|
23 /** | 23 /** |
24 * @file | 24 * @file |
25 * RV10/RV20 decoder | 25 * RV10/RV20 decoder |
26 */ | 26 */ |
27 | 27 |
28 #include "libavcore/imgutils.h" | |
28 #include "avcodec.h" | 29 #include "avcodec.h" |
29 #include "dsputil.h" | 30 #include "dsputil.h" |
30 #include "mpegvideo.h" | 31 #include "mpegvideo.h" |
31 #include "mpeg4video.h" | 32 #include "mpeg4video.h" |
32 #include "h263.h" | 33 #include "h263.h" |
367 new_w= s->orig_width ; | 368 new_w= s->orig_width ; |
368 new_h= s->orig_height; | 369 new_h= s->orig_height; |
369 } | 370 } |
370 if(new_w != s->width || new_h != s->height){ | 371 if(new_w != s->width || new_h != s->height){ |
371 av_log(s->avctx, AV_LOG_DEBUG, "attempting to change resolution to %dx%d\n", new_w, new_h); | 372 av_log(s->avctx, AV_LOG_DEBUG, "attempting to change resolution to %dx%d\n", new_w, new_h); |
372 if (avcodec_check_dimensions(s->avctx, new_w, new_h) < 0) | 373 if (av_check_image_size(new_w, new_h, 0, s->avctx) < 0) |
373 return -1; | 374 return -1; |
374 MPV_common_end(s); | 375 MPV_common_end(s); |
375 avcodec_set_dimensions(s->avctx, new_w, new_h); | 376 avcodec_set_dimensions(s->avctx, new_w, new_h); |
376 s->width = new_w; | 377 s->width = new_w; |
377 s->height = new_h; | 378 s->height = new_h; |