switch to little endian on libav recommendation