]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rl2.c
hevcdec: set the active SPS before calling get_format()
[ffmpeg] / libavcodec / rl2.c
index 4f68f7e997f51330f73bd47fa743b3eb39c4248c..c42a1cd007a9e699239b93884055586ac2ee55aa 100644 (file)
@@ -53,7 +53,7 @@ typedef struct Rl2Context {
  * @param s rl2 context
  * @param in input buffer
  * @param size input buffer size
- * @param out ouput buffer
+ * @param out output buffer
  * @param stride stride of the output buffer
  * @param video_base offset of the rle data inside the frame
  */
@@ -217,12 +217,12 @@ static av_cold int rl2_decode_end(AVCodecContext *avctx)
 
 AVCodec ff_rl2_decoder = {
     .name           = "rl2",
+    .long_name      = NULL_IF_CONFIG_SMALL("RL2 video"),
     .type           = AVMEDIA_TYPE_VIDEO,
     .id             = AV_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"),
+    .capabilities   = AV_CODEC_CAP_DR1,
 };