mirror of
https://github.com/mpv-player/mpv
synced 2024-12-21 06:14:32 +00:00
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:
parent
845f329059
commit
c5b739bf4a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user