]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dxv.c
avcodec/dxv: Initialize tex_funct to NULL
[ffmpeg] / libavcodec / dxv.c
index 5fd1844094a4e891e61b5fc87ea3a4d22062ba61..ae79de981f7d9441f7c7ff17ee8f41c34046d17d 100644 (file)
@@ -1057,6 +1057,10 @@ static int dxv_decode(AVCodecContext *avctx, void *data,
     avctx->pix_fmt = AV_PIX_FMT_RGBA;
     avctx->colorspace = AVCOL_SPC_RGB;
 
+    ctx->tex_funct = NULL;
+    ctx->tex_funct_planar[0] = NULL;
+    ctx->tex_funct_planar[1] = NULL;
+
     tag = bytestream2_get_le32(gbc);
     switch (tag) {
     case MKBETAG('D', 'X', 'T', '1'):