]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/faxcompr.c
Merge commit 'ec96a89c3e507cf0fb1f2b159b28a53f2bad9a74'
[ffmpeg] / libavcodec / faxcompr.c
index 44d27219ff45627b9e6cd355e630aaee9a555538..b65f2e24e1cd9d807522795c601f2692c0cede5a 100644 (file)
@@ -297,7 +297,7 @@ int ff_ccitt_unpack(AVCodecContext *avctx, const uint8_t *src, int srcsize,
     ref[1] = 0;
     ref[2] = 0;
     if ((ret = init_get_bits8(&gb, src, srcsize)) < 0)
-        return ret;
+        goto fail;
     has_eol = show_bits(&gb, 12) == 1 || show_bits(&gb, 16) == 1;
 
     for (j = 0; j < height; j++) {