mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
fix motion vectors for old version
Originally committed as revision 10096 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
cf786021a6
commit
9ac34d947a
@ -248,7 +248,10 @@ static void init_mv(FourXContext *f){
|
||||
int i;
|
||||
|
||||
for(i=0; i<256; i++){
|
||||
f->mv[i] = mv[i][0] + mv[i][1]*f->current_picture.linesize[0]/2;
|
||||
if(f->version)
|
||||
f->mv[i] = mv[i][0] + mv[i][1] *f->current_picture.linesize[0]/2;
|
||||
else
|
||||
f->mv[i] = (i&15) - 8 + ((i>>4)-8)*f->current_picture.linesize[0]/2;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user