[MPlayer-dev-eng] [PATCH 3/9] ad_libmad: Use BE sample format on big endian architectures
Nico Sabbi
Nicola.Sabbi at poste.it
Mon Feb 16 17:44:43 CET 2009
On Monday 16 February 2009 17:16:52 Hans-Christian Egtvedt wrote:
> Signed-off-by: Hans-Christian Egtvedt
> <hans-christian.egtvedt at atmel.com> ---
> libmpcodecs/ad_libmad.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/libmpcodecs/ad_libmad.c b/libmpcodecs/ad_libmad.c
> index 076359a..51b77fe 100644
> --- a/libmpcodecs/ad_libmad.c
> +++ b/libmpcodecs/ad_libmad.c
> @@ -86,6 +86,11 @@ static int init(sh_audio_t *sh){
> sh->channels=(this->frame.header.mode ==
> MAD_MODE_SINGLE_CHANNEL) ? 1 : 2;
> sh->samplerate=this->frame.header.samplerate;
> sh->i_bps=this->frame.header.bitrate/8;
> +#ifdef WORDS_BIGENDIAN
> + sh->sample_format = AF_FORMAT_S16_BE;
> +#else
> + sh->sample_format = AF_FORMAT_S16_LE;
> +#endif
> sh->samplesize=2;
>
> return 1;
not looking at the patch in any way, but I have to complain a bit:
don't you find very annoying those hideous git patches with code
inserted inline -rather than attached- and without a proper subject?
Shouldn't we insert some note in patches-howto.txt about this crap?
More information about the MPlayer-dev-eng
mailing list