]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ws-snd1.c
avutil/mem: Also poison new av_realloc-allocated blocks
[ffmpeg] / libavcodec / ws-snd1.c
index 0f005807ae826612bca9b7963c63529fa9f6e1b5..aa8cd0f5f99552a432d3ae3f0e16d035737bf9b5 100644 (file)
@@ -170,12 +170,13 @@ static int ws_snd_decode_frame(AVCodecContext *avctx, void *data,
     return buf_size;
 }
 
-AVCodec ff_ws_snd1_decoder = {
+const AVCodec ff_ws_snd1_decoder = {
     .name           = "ws_snd1",
     .long_name      = NULL_IF_CONFIG_SMALL("Westwood Audio (SND1)"),
     .type           = AVMEDIA_TYPE_AUDIO,
     .id             = AV_CODEC_ID_WESTWOOD_SND1,
     .init           = ws_snd_decode_init,
     .decode         = ws_snd_decode_frame,
-    .capabilities   = AV_CODEC_CAP_DR1,
+    .capabilities   = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF,
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };