With like __attribute__((aligned(32))),  __attribute__((aligned(4))), or
__attribute__((packed))  (
http://www.aleph1.co.uk/chapter-10-arm-structured-alignment-faq)

Example:
unsigned char request[BUFFER_SIZE] __attribute__((aligned(32)));


2013/3/26 Alexey Belkevich <[email protected]>

> Also, I found this note in avcodec_decode_audio4 description
>
> You might have to align the input buffer. The alignment requirements
> depend on the CPU and the decoder
> (
> http://ffmpeg.org/doxygen/trunk/group__lavc__decoding.html#ga834bb1b062fbcc2de4cf7fb93f154a3e
> )
>
> Is anyone know what it means? And how I can align buffer?
>
> Hello!
> I'm building an iOS audio player. I've tested playback in iOS Simulator
> (i386) and everything was fine. But when I've tested it on iPhone (ARM)
> there was only noise. Other formats are playing fine.
> I've done little research, and there what I found:
> 1) av_read_frame - returns the same data on both device and simulator
> (I've checked it in packet->data)
> 2) avcodec_decode_audio4 - returns DIFFERENT data on device and simulator
> (I've checked it in frame->data)
>
> Can it be related to ffmpeg compiling options?
> Any ideas?
>
> --
> Alexey Belkevich
>
>
>
> _______________________________________________
> Libav-user mailing list
> [email protected]
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to