Default to rgba when subpixelorder is not specified
parent
44e8107cac
commit
3f5dbb7780
|
@ -174,6 +174,10 @@ Image::Image(int p_width, int p_height, int p_colours, int p_subpixelorder, uint
|
|||
} else {
|
||||
AllocImgBuffer(size);
|
||||
}
|
||||
if (!subpixelorder) {
|
||||
// Default to RGBA when no subpixelorder is specified.
|
||||
subpixelorder == ZM_SUBPIX_ORDER_RGBA;
|
||||
}
|
||||
imagePixFormat = AVPixFormat();
|
||||
|
||||
update_function_pointers();
|
||||
|
@ -201,6 +205,10 @@ Image::Image(int p_width, int p_linesize, int p_height, int p_colours, int p_sub
|
|||
} else {
|
||||
AllocImgBuffer(size);
|
||||
}
|
||||
if (!subpixelorder) {
|
||||
// Default to RGBA when no subpixelorder is specified.
|
||||
subpixelorder == ZM_SUBPIX_ORDER_RGBA;
|
||||
}
|
||||
imagePixFormat = AVPixFormat();
|
||||
|
||||
update_function_pointers();
|
||||
|
|
Loading…
Reference in New Issue