Mercurial > libavcodec.hg
changeset 12022:bf2a317342a2 libavcodec
Fix "initialization from incompatible pointer type" warning in rv34.
Patch by Eli Friedman (at gmail).
author | benoit |
---|---|
date | Wed, 30 Jun 2010 06:50:44 +0000 |
parents | 18c23a632001 |
children | c7455450364d |
files | rv34.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rv34.c Wed Jun 30 01:57:05 2010 +0000 +++ b/rv34.c Wed Jun 30 06:50:44 2010 +0000 @@ -1142,7 +1142,7 @@ MpegEncContext *s = &r->s; int hmvmask = 0, vmvmask = 0, i, j; int midx = s->mb_x * 2 + s->mb_y * 2 * s->b8_stride; - int16_t (*motion_val)[2] = s->current_picture_ptr->motion_val[0][midx]; + int16_t (*motion_val)[2] = &s->current_picture_ptr->motion_val[0][midx]; for(j = 0; j < 16; j += 8){ for(i = 0; i < 2; i++){ if(is_mv_diff_gt_3(motion_val + i, 1))