Mercurial > mplayer.hg
view osdep/swab.c @ 28518:bc49856e5024
Replace fprintf call by mp_msg, fixes the warning:
In file included from libmpcodecs/vf_fspp.c:58:
libmpcodecs/mp_image.h: In function 'mp_image_setfmt':
libmpcodecs/mp_image.h:207: warning: implicit declaration of function 'please_use_av_log_instead_of_fprintf'
author | diego |
---|---|
date | Sat, 14 Feb 2009 11:43:14 +0000 |
parents | 936209c39ed1 |
children | 5cfef41a1771 |
line wrap: on
line source
#include "config.h" /* system has no swab. emulate via bswap */ #include "mpbswap.h" #include <unistd.h> void swab(const void *from, void *to, ssize_t n) { const int16_t *in = (int16_t*)from; int16_t *out = (int16_t*)to; int i; n /= 2; for (i = 0 ; i < n; i++) { out[i] = bswap_16(in[i]); } }