Revision a14c0824

View differences:

libavcodec/flashsv.c
133 133
        av_free(s->tmpblock);
134 134
        if ((s->tmpblock = av_malloc(3 * s->block_width * s->block_height)) == NULL) {
135 135
            av_log(avctx, AV_LOG_ERROR, "Can't allocate decompression buffer.\n");
136
            return -1;
136
            return AVERROR(ENOMEM);
137 137
        }
138 138
    }
139 139
    s->block_size = s->block_width * s->block_height;
libavcodec/flashsvenc.c
106 106

  
107 107
    if ((avctx->width > 4095) || (avctx->height > 4095)) {
108 108
        av_log(avctx, AV_LOG_ERROR, "Input dimensions too large, input must be max 4096x4096 !\n");
109
        return -1;
109
        return AVERROR_INVALIDDATA;
110 110
    }
111 111

  
112 112
    // Needed if zlib unused or init aborted before deflateInit
......
122 122

  
123 123
    if (!s->tmpblock || !s->encbuffer) {
124 124
        av_log(avctx, AV_LOG_ERROR, "Memory allocation failed.\n");
125
        return -1;
125
        return AVERROR(ENOMEM);
126 126
    }
127 127

  
128 128
    return 0;
......
222 222
        s->previous_frame = av_mallocz(FFABS(p->linesize[0]) * s->image_height);
223 223
        if (!s->previous_frame) {
224 224
            av_log(avctx, AV_LOG_ERROR, "Memory allocation failed.\n");
225
            return -1;
225
            return AVERROR(ENOMEM);
226 226
        }
227 227
        I_frame = 1;
228 228
    }

Also available in: Unified diff