1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-16 03:45:23 +00:00

Use native endian float filter provided by libbs2b instead of

selection based on WORDS_ENDIAN.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29134 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
bircoph 2009-04-02 20:49:47 +00:00
parent 12a6f0c056
commit 83c2df3565

View File

@ -45,6 +45,7 @@ static af_data_t *play_##name(struct af_instance_s *af, af_data_t *data) \
return data; \
}
PLAY(f,float)
PLAY(fbe,float)
PLAY(fle,float)
PLAY(s32be,int32_t)
@ -132,11 +133,7 @@ static int control(struct af_instance_s *af, int cmd, void *arg)
af->play = play_u8;
break;
default:
#ifdef WORDS_BIGENDIAN
af->play = play_fbe;
#else
af->play = play_fle;
#endif //WORDS_BIGENDIAN
af->play = play_f;
af->data->format = AF_FORMAT_FLOAT_NE;
af->data->bps=4;
break;