Use more designated initializers.
Also remove some pointless NULL/0 assigments. C++ code must be left as it is because named struct initializers are not supported by C++ standard.
This commit is contained in:

committed by
Carl Eugen Hoyos

parent
73ba2c1e62
commit
ba10207bbe
@@ -365,7 +365,6 @@ AVCodec ff_libopenjpeg_encoder = {
|
||||
.init = libopenjpeg_encode_init,
|
||||
.encode = libopenjpeg_encode_frame,
|
||||
.close = libopenjpeg_encode_close,
|
||||
.decode = NULL,
|
||||
.capabilities = 0,
|
||||
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_RGB24,PIX_FMT_RGBA,PIX_FMT_GRAY8,
|
||||
PIX_FMT_YUV420P,PIX_FMT_YUV422P,PIX_FMT_YUVA420P,
|
||||
|
Reference in New Issue
Block a user