projects
/
goodguy
/
cinelerra.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fba7ea
)
fix little_endian png 16bit per andrew
author
Good Guy
<good1.2guy@gmail.com>
Mon, 30 Mar 2020 00:37:58 +0000
(18:37 -0600)
committer
Good Guy
<good1.2guy@gmail.com>
Mon, 30 Mar 2020 00:37:58 +0000
(18:37 -0600)
cinelerra-5.1/cinelerra/filepng.C
patch
|
blob
|
history
diff --git
a/cinelerra-5.1/cinelerra/filepng.C
b/cinelerra-5.1/cinelerra/filepng.C
index 3b28e0eac5fa145ee8c99b7adc21cf4c9b688d6f..0540ff015534c90d5cd82a05fa9c96ba8cfb0337 100644
(file)
--- a/
cinelerra-5.1/cinelerra/filepng.C
+++ b/
cinelerra-5.1/cinelerra/filepng.C
@@
-229,6
+229,7
@@
int FilePNG::write_frame(VFrame *frame, VFrame *data, FrameWriterUnit *unit)
asset->png_use_alpha ? PNG_COLOR_TYPE_RGB_ALPHA : PNG_COLOR_TYPE_RGB,
PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);
png_write_info(png_ptr, info_ptr);
+ if( BC_Resources::little_endian ) png_set_swap(png_ptr);
png_write_image(png_ptr, output_frame->get_rows());
png_write_end(png_ptr, info_ptr);
result = 0;