static enum AVCodecID remap_deprecated_codec_id(enum AVCodecID id)
{
    switch(id){
        default                                         : return id;
    }
}

The product writes data past the end, or before the beginning, of the intended buffer.