libavcodec/v210enc.c:92: error: Uninitialized Value
  The value read from val was never initialized.

libavcodec/v210enc.c:92:13: 
90.         }
91.         if (w < avctx->width - 3) {
92.             val |=((*u++ & 0xFFC0) <<  4) |
                ^
93.                   ((*y++ & 0xFFC0) << 14);
94.             bytestream_put_le32(&p, val);

static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)
{
    const AVFrame *pic = data;
    int aligned_width = ((avctx->width + 47) / 48) * 48;
    int stride = aligned_width * 8 / 3;
    int h, w;
    const uint16_t *y = (const uint16_t*)pic->data[0];
    const uint16_t *u = (const uint16_t*)pic->data[1];
    const uint16_t *v = (const uint16_t*)pic->data[2];
    uint8_t *p = buf;
    uint8_t *pdst = buf;
    if (buf_size < aligned_width * avctx->height * 8 / 3) {
        av_log(avctx, AV_LOG_ERROR, "output buffer too small\n");
        return -1;
    }
#define WRITE_PIXELS(a, b, c)           \
    do {                                \
        val =  (*a++           >>  6) | \
              ((*b++ & 0xFFC0) <<  4);  \
        val|=  (*c++ & 0xFFC0) << 14;   \
        bytestream_put_le32(&p, val);   \
    } while (0);
    for (h = 0; h < avctx->height; h++) {
        uint32_t val;
        for (w = 0; w < avctx->width - 5; w += 6) {
            WRITE_PIXELS(u, y, v);
            WRITE_PIXELS(y, u, y);
            WRITE_PIXELS(v, y, u);
            WRITE_PIXELS(y, v, y);
        }
        if (w < avctx->width - 1) {
            WRITE_PIXELS(u, y, v);
            val =   *y++           >>  6;
            if (w == avctx->width - 2)
                bytestream_put_le32(&p, val);
        }
        if (w < avctx->width - 3) {
            val |=((*u++ & 0xFFC0) <<  4) |
                  ((*y++ & 0xFFC0) << 14);
            bytestream_put_le32(&p, val);
            val =  (*v++           >>  6) |
                   (*y++ & 0xFFC0) <<  4;
            bytestream_put_le32(&p, val);
        }
        pdst += stride;
        memset(p, 0, pdst - p);
        p = pdst;
        y += pic->linesize[0]/2 - avctx->width;
        u += pic->linesize[1]/2 - avctx->width/2;
        v += pic->linesize[2]/2 - avctx->width/2;
    }
    return p - buf;
}
['static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)\n{\n    const AVFrame *pic = data;\n    int aligned_width = ((avctx->width + 47) / 48) * 48;\n    int stride = aligned_width * 8 / 3;\n    int h, w;\n    const uint16_t *y = (const uint16_t*)pic->data[0];\n    const uint16_t *u = (const uint16_t*)pic->data[1];\n    const uint16_t *v = (const uint16_t*)pic->data[2];\n    uint8_t *p = buf;\n    uint8_t *pdst = buf;\n    if (buf_size < aligned_width * avctx->height * 8 / 3) {\n        av_log(avctx, AV_LOG_ERROR, "output buffer too small\\n");\n        return -1;\n    }\n#define WRITE_PIXELS(a, b, c)           \\\n    do {                                \\\n        val =  (*a++           >>  6) | \\\n              ((*b++ & 0xFFC0) <<  4);  \\\n        val|=  (*c++ & 0xFFC0) << 14;   \\\n        bytestream_put_le32(&p, val);   \\\n    } while (0);\n    for (h = 0; h < avctx->height; h++) {\n        uint32_t val;\n        for (w = 0; w < avctx->width - 5; w += 6) {\n            WRITE_PIXELS(u, y, v);\n            WRITE_PIXELS(y, u, y);\n            WRITE_PIXELS(v, y, u);\n            WRITE_PIXELS(y, v, y);\n        }\n        if (w < avctx->width - 1) {\n            WRITE_PIXELS(u, y, v);\n            val =   *y++           >>  6;\n            if (w == avctx->width - 2)\n                bytestream_put_le32(&p, val);\n        }\n        if (w < avctx->width - 3) {\n            val |=((*u++ & 0xFFC0) <<  4) |\n                  ((*y++ & 0xFFC0) << 14);\n            bytestream_put_le32(&p, val);\n            val =  (*v++           >>  6) |\n                   (*y++ & 0xFFC0) <<  4;\n            bytestream_put_le32(&p, val);\n        }\n        pdst += stride;\n        memset(p, 0, pdst - p);\n        p = pdst;\n        y += pic->linesize[0]/2 - avctx->width;\n        u += pic->linesize[1]/2 - avctx->width/2;\n        v += pic->linesize[2]/2 - avctx->width/2;\n    }\n    return p - buf;\n}']