Revision 081c14a3 libavcodec/sgienc.c

View differences:

libavcodec/sgienc.c
117 117
        buf += tablesize;
118 118

  
119 119
        /* Make an intermediate consecutive buffer. */
120
        if ((encode_buf = av_malloc(width)) == NULL)
120
        if (!(encode_buf = av_malloc(width)))
121 121
            return -1;
122 122

  
123 123
        for (z = 0; z < depth; z++) {

Also available in: Unified diff