Revision d87d5025 libavcodec/v210enc.c

View differences:

libavcodec/v210enc.c
48 48
    return 0;
49 49
}
50 50

  
51
static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)
51
static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
52
                        int buf_size, void *data)
52 53
{
53 54
    const AVFrame *pic = data;
54 55
    int aligned_width = ((avctx->width + 47) / 48) * 48;
......
101 102
        pdst += stride;
102 103
        memset(p, 0, pdst - p);
103 104
        p = pdst;
104
        y += pic->linesize[0]/2 - avctx->width;
105
        u += pic->linesize[1]/2 - avctx->width/2;
106
        v += pic->linesize[2]/2 - avctx->width/2;
105
        y += pic->linesize[0] / 2 - avctx->width;
106
        u += pic->linesize[1] / 2 - avctx->width / 2;
107
        v += pic->linesize[2] / 2 - avctx->width / 2;
107 108
    }
108 109

  
109 110
    return p - buf;

Also available in: Unified diff