]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/diracdec.c
lavc/mjpegdec: avoid unneeded allocation if the frame is to be skipped
[ffmpeg] / libavcodec / diracdec.c
index 473dbec4b14d40077c45616dfc9c0a20a3f2c880..e530a05de3c08d08b132e317c0d838823f995bff 100644 (file)
@@ -1750,8 +1750,8 @@ static int dirac_decode_frame_internal(DiracContext *s)
             memset(p->idwt.buf, 0, p->idwt.stride * p->idwt.height);
             decode_component(s, comp); /* [DIRAC_STD] 13.4.1 core_transform_data() */
         }
-        ret = ff_spatial_idwt_init(&d, p->idwt.buf, p->idwt.width, p->idwt.height, p->idwt.stride,
-                                   s->wavelet_idx+2, s->wavelet_depth, p->idwt.tmp, s->bit_depth);
+        ret = ff_spatial_idwt_init(&d, &p->idwt, s->wavelet_idx+2,
+                                   s->wavelet_depth, s->bit_depth);
         if (ret < 0)
             return ret;