[FFmpeg-devel] [PATCH] libavformat/dv : read dv audio as BE

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon Aug 28 19:46:26 EEST 2017


2017-08-28 18:42 GMT+02:00 Carl Eugen Hoyos <ceffmpeg at gmail.com>:
> 2017-08-28 18:22 GMT+02:00 Александр Слободенюк
> <alexander.slobodeniuk at bramtech.ru>:
>> Fixing the FIXME issue, where BE audio inside the dv codec reads as LE
>> after swapping it's bytes. It's was not very clear, because if we read
>> it on BE machine we'll swap it twice.
>
>> -static int dv_extract_audio(const uint8_t *frame, uint8_t **ppcm,
>> +static int dv_extract_audio(const uint8_t *frame, uint16_t **ppcm,
>
> Is this change necessary?

It is necessary, the cast should be unnecessary though.

Carl Eugen


More information about the ffmpeg-devel mailing list