revert bogus code in Image(AvFrame)
This commit is contained in:
parent
a29030c5f8
commit
c1dfb8571a
|
@ -168,18 +168,8 @@ Image::Image( const AVFrame *frame ) {
|
|||
height = frame->height;
|
||||
pixels = width*height;
|
||||
|
||||
if ( frame->format == AV_PIX_FMT_RGBA ) {
|
||||
colours = ZM_COLOUR_RGB32;
|
||||
subpixelorder = ZM_SUBPIX_ORDER_RGBA;
|
||||
} else if ( frame->format == AV_PIX_FMT_RGB24 ) {
|
||||
colours = ZM_COLOUR_RGB24;
|
||||
subpixelorder = ZM_SUBPIX_ORDER_RGB;
|
||||
} else if ( frame->format == AV_PIX_FMT_GRAY8 ) {
|
||||
colours = ZM_COLOUR_GRAY8;
|
||||
subpixelorder = ZM_SUBPIX_ORDER_NONE;
|
||||
} else {
|
||||
Error("Unhandled frame format: %d", frame->format);
|
||||
}
|
||||
|
||||
size = pixels*colours;
|
||||
buffer = 0;
|
||||
|
|
Loading…
Reference in New Issue