[Libav-user] noise on mp3-decoding

Lars Hammarstrand lars.hammarstrand at gmail.com
Fri Apr 5 19:41:05 CEST 2013


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 <belkevich at mlsdev.com>

> 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
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130405/cb19b66a/attachment.html>


More information about the Libav-user mailing list