summaryrefslogtreecommitdiff
path: root/libavcodec/roqvideo.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2007-06-26 20:10:26 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2007-06-26 20:10:26 +0000
commit9489d2ef3f61fecd1aa8f31cd816d9c6d766bf23 (patch)
tree6edacb530bb25d7b0f12e41dc9b0050c09864bad /libavcodec/roqvideo.c
parentdad66beeffdd30aa0c7dd7d657a40de0a2c2aa92 (diff)
add width and height in context and use them
patch by Vitor: [vitor1001 gmail com] Originally committed as revision 9438 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/roqvideo.c')
-rw-r--r--libavcodec/roqvideo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/roqvideo.c b/libavcodec/roqvideo.c
index e478d4c10b..d53d090f08 100644
--- a/libavcodec/roqvideo.c
+++ b/libavcodec/roqvideo.c
@@ -102,10 +102,10 @@ static inline void apply_motion_generic(RoqContext *ri, int x, int y, int deltax
my = y + deltay;
/* check MV against frame boundaries */
- if ((mx < 0) || (mx > ri->avctx->width - sz) ||
- (my < 0) || (my > ri->avctx->height - sz)) {
+ if ((mx < 0) || (mx > ri->width - sz) ||
+ (my < 0) || (my > ri->height - sz)) {
av_log(ri->avctx, AV_LOG_ERROR, "motion vector out of bounds: MV = (%d, %d), boundaries = (0, 0, %d, %d)\n",
- mx, my, ri->avctx->width, ri->avctx->height);
+ mx, my, ri->width, ri->height);
return;
}