You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
@ -219,7 +219,15 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
|||||||
bytestream2_put_be32(&taboff_pcb, bytestream2_tell_p(&pbc));
|
bytestream2_put_be32(&taboff_pcb, bytestream2_tell_p(&pbc));
|
||||||
|
|
||||||
for (x = 0; x < width * bytes_per_channel; x += bytes_per_channel)
|
for (x = 0; x < width * bytes_per_channel; x += bytes_per_channel)
|
||||||
|
if (bytes_per_channel == 1) {
|
||||||
encode_buf[x] = in_buf[depth * x];
|
encode_buf[x] = in_buf[depth * x];
|
||||||
|
} else if (HAVE_BIGENDIAN ^ put_be) {
|
||||||
|
encode_buf[x + 1] = in_buf[depth * x];
|
||||||
|
encode_buf[x] = in_buf[depth * x + 1];
|
||||||
|
} else {
|
||||||
|
encode_buf[x] = in_buf[depth * x];
|
||||||
|
encode_buf[x + 1] = in_buf[depth * x + 1];
|
||||||
|
}
|
||||||
|
|
||||||
length = sgi_rle_encode(&pbc, encode_buf, width,
|
length = sgi_rle_encode(&pbc, encode_buf, width,
|
||||||
bytes_per_channel);
|
bytes_per_channel);
|
||||||
|
Reference in New Issue
Block a user