]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/sp5xdec.c
h264: use the main H264Context as the parent for all slice contexts
[ffmpeg] / libavcodec / sp5xdec.c
index 90c34911bdaec6a15702d498358da61f67f05ca3..08bdbc097c1f45393832946a9ceac6386cd0157e 100644 (file)
@@ -25,6 +25,7 @@
  */
 
 #include "avcodec.h"
+#include "internal.h"
 #include "mjpeg.h"
 #include "mjpegdec.h"
 #include "sp5x.h"
@@ -95,6 +96,7 @@ static int sp5x_decode_frame(AVCodecContext *avctx,
 
 AVCodec ff_sp5x_decoder = {
     .name           = "sp5x",
+    .long_name      = NULL_IF_CONFIG_SMALL("Sunplus JPEG (SP5X)"),
     .type           = AVMEDIA_TYPE_VIDEO,
     .id             = AV_CODEC_ID_SP5X,
     .priv_data_size = sizeof(MJpegDecodeContext),
@@ -102,16 +104,17 @@ AVCodec ff_sp5x_decoder = {
     .close          = ff_mjpeg_decode_end,
     .decode         = sp5x_decode_frame,
     .capabilities   = CODEC_CAP_DR1,
-    .long_name      = NULL_IF_CONFIG_SMALL("Sunplus JPEG (SP5X)"),
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };
 
 AVCodec ff_amv_decoder = {
     .name           = "amv",
+    .long_name      = NULL_IF_CONFIG_SMALL("AMV Video"),
     .type           = AVMEDIA_TYPE_VIDEO,
     .id             = AV_CODEC_ID_AMV,
     .priv_data_size = sizeof(MJpegDecodeContext),
     .init           = ff_mjpeg_decode_init,
     .close          = ff_mjpeg_decode_end,
     .decode         = sp5x_decode_frame,
-    .long_name      = NULL_IF_CONFIG_SMALL("AMV Video"),
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };