Mercurial > libavcodec.hg
comparison 4xm.c @ 5535:75b2c31d3dde libavcodec
fix motion vectors for old version
author | michael |
---|---|
date | Mon, 13 Aug 2007 01:05:19 +0000 |
parents | 1c8999a3f193 |
children | 44e140e3cd6a |
comparison
equal
deleted
inserted
replaced
5534:1c8999a3f193 | 5535:75b2c31d3dde |
---|---|
246 | 246 |
247 static void init_mv(FourXContext *f){ | 247 static void init_mv(FourXContext *f){ |
248 int i; | 248 int i; |
249 | 249 |
250 for(i=0; i<256; i++){ | 250 for(i=0; i<256; i++){ |
251 f->mv[i] = mv[i][0] + mv[i][1]*f->current_picture.linesize[0]/2; | 251 if(f->version) |
252 f->mv[i] = mv[i][0] + mv[i][1] *f->current_picture.linesize[0]/2; | |
253 else | |
254 f->mv[i] = (i&15) - 8 + ((i>>4)-8)*f->current_picture.linesize[0]/2; | |
252 } | 255 } |
253 } | 256 } |
254 | 257 |
255 static inline void mcdc(uint16_t *dst, uint16_t *src, int log2w, int h, int stride, int scale, int dc){ | 258 static inline void mcdc(uint16_t *dst, uint16_t *src, int log2w, int h, int stride, int scale, int dc){ |
256 int i; | 259 int i; |