]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rl2.c
cosmetics: reindent after last commit
[ffmpeg] / libavcodec / rl2.c
index d9b7d648389d64ef15092f5d914b84b807a81228..721e5706acf3072b37d99c7312abbbbf451d66ce 100644 (file)
@@ -21,7 +21,7 @@
 
 /**
  * RL2 Video Decoder
- * @file rl2.c
+ * @file libavcodec/rl2.c
  * @author Sascha Sommer (saschasommer@freenet.de)
  * For more information about the RL2 format, visit:
  *   http://wiki.multimedia.cx/index.php?title=RL2
@@ -30,8 +30,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <unistd.h>
 
+#include "libavutil/intreadwrite.h"
 #include "avcodec.h"
 
 
@@ -180,8 +180,10 @@ static av_cold int rl2_decode_init(AVCodecContext *avctx)
  */
 static int rl2_decode_frame(AVCodecContext *avctx,
                               void *data, int *data_size,
-                              const uint8_t *buf, int buf_size)
+                              AVPacket *avpkt)
 {
+    const uint8_t *buf = avpkt->data;
+    int buf_size = avpkt->size;
     Rl2Context *s = avctx->priv_data;
 
     if(s->frame.data[0])
@@ -236,6 +238,6 @@ AVCodec rl2_decoder = {
     rl2_decode_end,
     rl2_decode_frame,
     CODEC_CAP_DR1,
-    .long_name = "RL2 video",
+    .long_name = NULL_IF_CONFIG_SMALL("RL2 video"),
 };