flashsv2enc: align codec declarations
authorPaul B Mahol <onemda@gmail.com>
Thu, 14 Jun 2012 15:19:43 +0000 (15:19 +0000)
committerPaul B Mahol <onemda@gmail.com>
Thu, 14 Jun 2012 15:48:43 +0000 (15:48 +0000)
While here constify enums for .pix_fmts.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/flashsv2enc.c

index 8ab9046..7502707 100644 (file)
@@ -912,7 +912,7 @@ AVCodec ff_flashsv2_encoder = {
     .init           = flashsv2_encode_init,
     .encode2        = flashsv2_encode_frame,
     .close          = flashsv2_encode_end,
-    .pix_fmts = (enum PixelFormat[]) {PIX_FMT_BGR24, PIX_FMT_NONE},
-    .long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video Version 2"),
-    .capabilities   =  CODEC_CAP_EXPERIMENTAL,
+    .pix_fmts       = (const enum PixelFormat[]){ PIX_FMT_BGR24, PIX_FMT_NONE },
+    .long_name      = NULL_IF_CONFIG_SMALL("Flash Screen Video Version 2"),
+    .capabilities   = CODEC_CAP_EXPERIMENTAL,
 };