diff options
author | Luca Abeni <lucabe72@email.it> | 2006-12-26 16:21:13 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2006-12-26 16:21:13 +0000 |
commit | 7d19628b14311567758626cea1aef901a040486c (patch) | |
tree | 96ae417c8543499843ea28f9383820130ca4ef2a /libswscale | |
parent | 9effd94abcb02f02748ff67815581f76caa6350b (diff) | |
download | ffmpeg-streaming-7d19628b14311567758626cea1aef901a040486c.zip ffmpeg-streaming-7d19628b14311567758626cea1aef901a040486c.tar.gz |
Add some explicit casts to avoid some warnings
Originally committed as revision 21772 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale_template.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c index ee2c927..aa1dd31 100644 --- a/libswscale/swscale_template.c +++ b/libswscale/swscale_template.c @@ -3107,15 +3107,15 @@ i--; int i; if(flags & SWS_ACCURATE_RND){ for(i=0; i<vLumFilterSize; i+=2){ - lumMmxFilter[2*i+0]= lumSrcPtr[i ]; - lumMmxFilter[2*i+1]= lumSrcPtr[i+(vLumFilterSize>1)]; + lumMmxFilter[2*i+0]= (int32_t)lumSrcPtr[i ]; + lumMmxFilter[2*i+1]= (int32_t)lumSrcPtr[i+(vLumFilterSize>1)]; lumMmxFilter[2*i+2]= lumMmxFilter[2*i+3]= vLumFilter[dstY*vLumFilterSize + i ] + (vLumFilterSize>1 ? vLumFilter[dstY*vLumFilterSize + i + 1]<<16 : 0); } for(i=0; i<vChrFilterSize; i+=2){ - chrMmxFilter[2*i+0]= chrSrcPtr[i ]; - chrMmxFilter[2*i+1]= chrSrcPtr[i+(vChrFilterSize>1)]; + chrMmxFilter[2*i+0]= (int32_t)chrSrcPtr[i ]; + chrMmxFilter[2*i+1]= (int32_t)chrSrcPtr[i+(vChrFilterSize>1)]; chrMmxFilter[2*i+2]= chrMmxFilter[2*i+3]= vChrFilter[chrDstY*vChrFilterSize + i ] + (vChrFilterSize>1 ? vChrFilter[chrDstY*vChrFilterSize + i + 1]<<16 : 0); |