Mercurial > mplayer.hg
diff libmpcodecs/ae_pcm.c @ 21531:a90aa203186c
Get rid of min/max macros from aviheader.h, they do not belong here.
Replace their uses by FFMIN/FFMAX
author | reimar |
---|---|
date | Sat, 09 Dec 2006 12:24:11 +0000 |
parents | 6ff3379a0862 |
children | ca9da45d13e9 |
line wrap: on
line diff
--- a/libmpcodecs/ae_pcm.c Sat Dec 09 12:14:14 2006 +0000 +++ b/libmpcodecs/ae_pcm.c Sat Dec 09 12:24:11 2006 +0000 @@ -36,7 +36,7 @@ static int encode_pcm(audio_encoder_t *encoder, uint8_t *dest, void *src, int nsamples, int max_size) { - max_size = min(nsamples, max_size); + max_size = FFMIN(nsamples, max_size); memcpy(dest, src, max_size); return max_size; }