libavformat/cdg.c:62: error: Uninitialized Value
  The value read from ret was never initialized.

libavformat/cdg.c:62:5: 
60. 
61.     pkt->stream_index = 0;
62.     return ret;
        ^
63. }
64. 

static int read_packet(AVFormatContext *s, AVPacket *pkt)
{
    int ret;
    while (1) {
        ret = av_get_packet(s->pb, pkt, CDG_PACKET_SIZE);
        if (ret < 1 || (pkt->data[0] & CDG_MASK) == CDG_COMMAND)
            break;
        av_free_packet(pkt);
    }
    pkt->stream_index = 0;
    return ret;
}
['static int read_packet(AVFormatContext *s, AVPacket *pkt)\n{\n    int ret;\n    while (1) {\n        ret = av_get_packet(s->pb, pkt, CDG_PACKET_SIZE);\n        if (ret < 1 || (pkt->data[0] & CDG_MASK) == CDG_COMMAND)\n            break;\n        av_free_packet(pkt);\n    }\n    pkt->stream_index = 0;\n    return ret;\n}']