Mercurial > mplayer.hg
changeset 12481:dbbc25ea6403
fix endian conversion for (curently unused) case where in buffer != out buffer
author | reimar |
---|---|
date | Sun, 16 May 2004 16:21:33 +0000 |
parents | 6f4f9d1343e9 |
children | ad68ea76bc05 |
files | libaf/af_format.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libaf/af_format.c Sun May 16 11:32:59 2004 +0000 +++ b/libaf/af_format.c Sun May 16 16:21:33 2004 +0000 @@ -391,6 +391,8 @@ 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;