Mercurial > libavcodec.hg
diff roqvideo.c @ 5188:c2a475157299 libavcodec
add width and height in context and use them
patch by Vitor: [vitor1001 gmail com]
author | benoit |
---|---|
date | Tue, 26 Jun 2007 20:10:26 +0000 |
parents | 3adfa650c7ad |
children | ab669ac706dc |
line wrap: on
line diff
--- a/roqvideo.c Tue Jun 26 18:01:15 2007 +0000 +++ b/roqvideo.c Tue Jun 26 20:10:26 2007 +0000 @@ -102,10 +102,10 @@ 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; }