]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rl2.c
threads: always include necessary headers for number of CPUs detection
[ffmpeg] / libavcodec / rl2.c
index 9d436a682fb69dd8325736680a28a99f13e892a6..7e3bd9cddecfde00c605efabdd569db1acf8a6f6 100644 (file)
@@ -23,9 +23,7 @@
  * @file
  * RL2 Video Decoder
  * @author Sascha Sommer (saschasommer@freenet.de)
- *
- * For more information about the RL2 format, visit:
- *   http://wiki.multimedia.cx/index.php?title=RL2
+ * @see http://wiki.multimedia.cx/index.php?title=RL2
  */
 
 #include <stdio.h>
@@ -221,15 +219,14 @@ static av_cold int rl2_decode_end(AVCodecContext *avctx)
 
 
 AVCodec ff_rl2_decoder = {
-    "rl2",
-    AVMEDIA_TYPE_VIDEO,
-    CODEC_ID_RL2,
-    sizeof(Rl2Context),
-    rl2_decode_init,
-    NULL,
-    rl2_decode_end,
-    rl2_decode_frame,
-    CODEC_CAP_DR1,
+    .name           = "rl2",
+    .type           = AVMEDIA_TYPE_VIDEO,
+    .id             = CODEC_ID_RL2,
+    .priv_data_size = sizeof(Rl2Context),
+    .init           = rl2_decode_init,
+    .close          = rl2_decode_end,
+    .decode         = rl2_decode_frame,
+    .capabilities   = CODEC_CAP_DR1,
     .long_name = NULL_IF_CONFIG_SMALL("RL2 video"),
 };