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

libavcodec/v210enc.c:95:13: 
93.         }
94.         if (w < avctx->width - 3) {
95.             val |= (CLIP(*u++) << 10) | (CLIP(*y++) << 20);
                ^
96.             bytestream_put_le32(&p, val);
97. 

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 CLIP(v) av_clip(v, 4, 1019)
#define WRITE_PIXELS(a, b, c)           \
    do {                                \
        val =   CLIP(*a++);             \
        val |= (CLIP(*b++) << 10) |     \
               (CLIP(*c++) << 20);      \
        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 = CLIP(*y++);
            if (w == avctx->width - 2)
                bytestream_put_le32(&p, val);
        }
        if (w < avctx->width - 3) {
            val |= (CLIP(*u++) << 10) | (CLIP(*y++) << 20);
            bytestream_put_le32(&p, val);
            val = CLIP(*v++) | (CLIP(*y++) << 10);
            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,\n                        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 CLIP(v) av_clip(v, 4, 1019)\n#define WRITE_PIXELS(a, b, c)           \\\n    do {                                \\\n        val =   CLIP(*a++);             \\\n        val |= (CLIP(*b++) << 10) |     \\\n               (CLIP(*c++) << 20);      \\\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 = CLIP(*y++);\n            if (w == avctx->width - 2)\n                bytestream_put_le32(&p, val);\n        }\n        if (w < avctx->width - 3) {\n            val |= (CLIP(*u++) << 10) | (CLIP(*y++) << 20);\n            bytestream_put_le32(&p, val);\n            val = CLIP(*v++) | (CLIP(*y++) << 10);\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}']