Revision ba24c5a3

View differences:

libavcodec/dpxenc.c
136 136
    switch(s->bits_per_component) {
137 137
    case 8:
138 138
    case 16:
139
    size = avpicture_layout((AVPicture*)data, avctx->pix_fmt,
140
                            avctx->width, avctx->height,
141
                            buf + HEADER_SIZE, buf_size - HEADER_SIZE);
142
    if (size < 0)
143
        return size;
139
        size = avpicture_layout((AVPicture*)data, avctx->pix_fmt,
140
                                avctx->width, avctx->height,
141
                                buf + HEADER_SIZE, buf_size - HEADER_SIZE);
142
        if (size < 0)
143
            return size;
144 144
        break;
145 145
    case 10:
146 146
        size = avctx->height * avctx->width * 4;

Also available in: Unified diff