libavcodec/pcm.c:195: error: Uninitialized Value
  The value read from samples was never initialized.

libavcodec/pcm.c:195:9: 
193.     switch(avctx->codec->id) {
194.     case CODEC_ID_PCM_F32BE:
195.         ENCODE(int32_t, be32, samples, dst, n, 0)
             ^
196.         break;
197.     case CODEC_ID_PCM_S32LE:

static int pcm_encode_frame(AVCodecContext *avctx,
                            unsigned char *frame, int buf_size, void *data)
{
    int n, sample_size, v;
    short *samples;
    unsigned char *dst;
    sample_size = av_get_bits_per_sample(avctx->codec->id)/8;
    n = buf_size / sample_size;
    samples = data;
    dst = frame;
    switch(avctx->codec->id) {
    case CODEC_ID_PCM_F32BE:
        ENCODE(int32_t, be32, samples, dst, n, 0)
        break;
    case CODEC_ID_PCM_S32LE:
        encode_from16(4, 1, 0, &samples, &dst, n);
        break;
    case CODEC_ID_PCM_S32BE:
        encode_from16(4, 0, 0, &samples, &dst, n);
        break;
    case CODEC_ID_PCM_U32LE:
        encode_from16(4, 1, 1, &samples, &dst, n);
        break;
    case CODEC_ID_PCM_U32BE:
        encode_from16(4, 0, 1, &samples, &dst, n);
        break;
    case CODEC_ID_PCM_S24LE:
        encode_from16(3, 1, 0, &samples, &dst, n);
        break;
    case CODEC_ID_PCM_S24BE:
        encode_from16(3, 0, 0, &samples, &dst, n);
        break;
    case CODEC_ID_PCM_U24LE:
        encode_from16(3, 1, 1, &samples, &dst, n);
        break;
    case CODEC_ID_PCM_U24BE:
        encode_from16(3, 0, 1, &samples, &dst, n);
        break;
    case CODEC_ID_PCM_S24DAUD:
        for(;n>0;n--) {
            uint32_t tmp = ff_reverse[(*samples >> 8) & 0xff] +
                           (ff_reverse[*samples & 0xff] << 8);
            tmp <<= 4;
            bytestream_put_be24(&dst, tmp);
            samples++;
        }
        break;
    case CODEC_ID_PCM_S16LE:
        for(;n>0;n--) {
            v = *samples++;
            bytestream_put_le16(&dst, v);
        }
        break;
    case CODEC_ID_PCM_S16BE:
        for(;n>0;n--) {
            v = *samples++;
            bytestream_put_be16(&dst, v);
        }
        break;
    case CODEC_ID_PCM_U16LE:
        for(;n>0;n--) {
            v = *samples++;
            v += 0x8000;
            bytestream_put_le16(&dst, v);
        }
        break;
    case CODEC_ID_PCM_U16BE:
        for(;n>0;n--) {
            v = *samples++;
            v += 0x8000;
            bytestream_put_be16(&dst, v);
        }
        break;
    case CODEC_ID_PCM_S8:
        for(;n>0;n--) {
            v = *samples++;
            *dst++ = v >> 8;
        }
        break;
    case CODEC_ID_PCM_U8:
        for(;n>0;n--) {
            v = *samples++;
            *dst++ = (v >> 8) + 128;
        }
        break;
    case CODEC_ID_PCM_ZORK:
        for(;n>0;n--) {
            v= *samples++ >> 8;
            if(v<0)   v = -v;
            else      v+= 128;
            *dst++ = v;
        }
        break;
    case CODEC_ID_PCM_ALAW:
        for(;n>0;n--) {
            v = *samples++;
            *dst++ = linear_to_alaw[(v + 32768) >> 2];
        }
        break;
    case CODEC_ID_PCM_MULAW:
        for(;n>0;n--) {
            v = *samples++;
            *dst++ = linear_to_ulaw[(v + 32768) >> 2];
        }
        break;
    default:
        return -1;
    }
    return dst - frame;
}
['static int pcm_encode_frame(AVCodecContext *avctx,\n                            unsigned char *frame, int buf_size, void *data)\n{\n    int n, sample_size, v;\n    short *samples;\n    unsigned char *dst;\n    sample_size = av_get_bits_per_sample(avctx->codec->id)/8;\n    n = buf_size / sample_size;\n    samples = data;\n    dst = frame;\n    switch(avctx->codec->id) {\n    case CODEC_ID_PCM_F32BE:\n        ENCODE(int32_t, be32, samples, dst, n, 0)\n        break;\n    case CODEC_ID_PCM_S32LE:\n        encode_from16(4, 1, 0, &samples, &dst, n);\n        break;\n    case CODEC_ID_PCM_S32BE:\n        encode_from16(4, 0, 0, &samples, &dst, n);\n        break;\n    case CODEC_ID_PCM_U32LE:\n        encode_from16(4, 1, 1, &samples, &dst, n);\n        break;\n    case CODEC_ID_PCM_U32BE:\n        encode_from16(4, 0, 1, &samples, &dst, n);\n        break;\n    case CODEC_ID_PCM_S24LE:\n        encode_from16(3, 1, 0, &samples, &dst, n);\n        break;\n    case CODEC_ID_PCM_S24BE:\n        encode_from16(3, 0, 0, &samples, &dst, n);\n        break;\n    case CODEC_ID_PCM_U24LE:\n        encode_from16(3, 1, 1, &samples, &dst, n);\n        break;\n    case CODEC_ID_PCM_U24BE:\n        encode_from16(3, 0, 1, &samples, &dst, n);\n        break;\n    case CODEC_ID_PCM_S24DAUD:\n        for(;n>0;n--) {\n            uint32_t tmp = ff_reverse[(*samples >> 8) & 0xff] +\n                           (ff_reverse[*samples & 0xff] << 8);\n            tmp <<= 4;\n            bytestream_put_be24(&dst, tmp);\n            samples++;\n        }\n        break;\n    case CODEC_ID_PCM_S16LE:\n        for(;n>0;n--) {\n            v = *samples++;\n            bytestream_put_le16(&dst, v);\n        }\n        break;\n    case CODEC_ID_PCM_S16BE:\n        for(;n>0;n--) {\n            v = *samples++;\n            bytestream_put_be16(&dst, v);\n        }\n        break;\n    case CODEC_ID_PCM_U16LE:\n        for(;n>0;n--) {\n            v = *samples++;\n            v += 0x8000;\n            bytestream_put_le16(&dst, v);\n        }\n        break;\n    case CODEC_ID_PCM_U16BE:\n        for(;n>0;n--) {\n            v = *samples++;\n            v += 0x8000;\n            bytestream_put_be16(&dst, v);\n        }\n        break;\n    case CODEC_ID_PCM_S8:\n        for(;n>0;n--) {\n            v = *samples++;\n            *dst++ = v >> 8;\n        }\n        break;\n    case CODEC_ID_PCM_U8:\n        for(;n>0;n--) {\n            v = *samples++;\n            *dst++ = (v >> 8) + 128;\n        }\n        break;\n    case CODEC_ID_PCM_ZORK:\n        for(;n>0;n--) {\n            v= *samples++ >> 8;\n            if(v<0)   v = -v;\n            else      v+= 128;\n            *dst++ = v;\n        }\n        break;\n    case CODEC_ID_PCM_ALAW:\n        for(;n>0;n--) {\n            v = *samples++;\n            *dst++ = linear_to_alaw[(v + 32768) >> 2];\n        }\n        break;\n    case CODEC_ID_PCM_MULAW:\n        for(;n>0;n--) {\n            v = *samples++;\n            *dst++ = linear_to_ulaw[(v + 32768) >> 2];\n        }\n        break;\n    default:\n        return -1;\n    }\n    return dst - frame;\n}']