fix endian conversion for (curently unused) case where in buffer != out buffer

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12482 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2004-05-16 16:21:33 +00:00
parent 845f329059
commit c5b739bf4a
1 changed files with 2 additions and 0 deletions

View File

@ -391,6 +391,8 @@ static void endian(void* in, void* out, int len, int bps)
for(i=0;i<len;i++){
s=((uint8_t*)in)[3*i];
((uint8_t*)out)[3*i]=((uint8_t*)in)[3*i+2];
if (in != out)
((uint8_t*)out)[3*i+1]=((uint8_t*)in)[3*i+1];
((uint8_t*)out)[3*i+2]=s;
}
break;