[FFmpeg-devel] [PATCH]Simplify ptx decoding on big-endian
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sat Jul 14 13:13:51 CEST 2012
On Sat, Jul 14, 2012 at 10:36:03AM +0200, Carl Eugen Hoyos wrote:
> Hi!
>
> Attached patch simplifies ptx decoding on big-endian and saves a few
> lines of source code.
>
> Please comment, Carl Eugen
Looks fine to me.
The old big-endian code looks really strange/broken anyway, it advances
by bytes_per_pixel but always copies 2 bytes?
I see there is a check that ensures it is always 2 before though, wonder
if the compilers manage to optimize the code correctly...
More information about the ffmpeg-devel
mailing list