Mercurial > libavcodec.hg
comparison wmv2.c @ 4333:018b316baca7 libavcodec
maybe fixing a segfault
author | michael |
---|---|
date | Wed, 03 Jan 2007 11:32:02 +0000 |
parents | 34fdffe98bd0 |
children | a96d905dcbaa |
comparison
equal
deleted
inserted
replaced
4332:35812973e0bc | 4333:018b316baca7 |
---|---|
641 | 641 |
642 /* WARNING: do no forget half pels */ | 642 /* WARNING: do no forget half pels */ |
643 v_edge_pos = s->v_edge_pos; | 643 v_edge_pos = s->v_edge_pos; |
644 src_x = clip(src_x, -16, s->width); | 644 src_x = clip(src_x, -16, s->width); |
645 src_y = clip(src_y, -16, s->height); | 645 src_y = clip(src_y, -16, s->height); |
646 | |
647 if(src_x<=-16 || src_x >= s->width) | |
648 dxy &= ~3; | |
649 if(src_y<=-16 || src_y >= s->height) | |
650 dxy &= ~4; | |
651 | |
646 linesize = s->linesize; | 652 linesize = s->linesize; |
647 uvlinesize = s->uvlinesize; | 653 uvlinesize = s->uvlinesize; |
648 ptr = ref_picture[0] + (src_y * linesize) + src_x; | 654 ptr = ref_picture[0] + (src_y * linesize) + src_x; |
649 | 655 |
650 if(s->flags&CODEC_FLAG_EMU_EDGE){ | 656 if(s->flags&CODEC_FLAG_EMU_EDGE){ |